import_image
Import an image from a URL with Wavegrain's MCP server: the import_image tool needs the write permission. Inputs, outputs and an example call.
Import an image from a URL. Permission: write. Changes saved work.
Copy a PNG, JPEG or WebP image (at most 8 MB) from a public https URL into the user's uploads as a libraryUrl. Only images the user has the right to use. Free.
Inputs
| Input | Type | Required | Notes |
|---|---|---|---|
url | string | yes | A public https:// URL of a PNG, JPEG or WebP image, at most 8 MB. up to 2048 characters |
The fields inside an object or a list are in the JSON Schema at /developers/mcp-tools.json.
Returns
| Field | Type | Notes |
|---|---|---|
libraryUrl | string | The stored copy: pass it as an image reference. |
contentType | string | The image type, such as image/jpeg. |
Example call
Send it to POST https://wavegrain.com/api/mcp with an access key that has the write permission; Authentication shows how to make one.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "import_image",
"arguments": {
"url": "<url>"
}
}
}
The call shows only the required inputs, with placeholder values: put your own in.
Related tools
edit_slides: Edit slidessave_images: Save images to the libraryopen_upload: Open a drop zone for photosexport_slideshow: Export a slideshowcreate_style: Create a tailored styleedit_style: Edit a tailored style- All 79 tools
Something wrong or missing? Write to support@wavegrain.com.