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

InputTypeRequiredNotes
urlstringyesA 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

FieldTypeNotes
libraryUrlstringThe stored copy: pass it as an image reference.
contentTypestringThe 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.

Something wrong or missing? Write to support@wavegrain.com.