upload_image
Download an image from a public HTTPS URL, save it to the docs site image folder, and return Markdown to embed it in a tutorial without linking to another site.
Instructions
Download an image from a public https URL and save it in the docs site, so a tutorial can show it without linking to another website. Returns the Markdown to put in the tutorial. Only use images you may reuse (for example under a free license), and credit the author in the tutorial when the license asks for it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>",
"name": "<name>"
},
"name": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | Alt text describing the image, used in the returned Markdown | |
| url | Yes | Public https URL of a JPEG, PNG, GIF or WebP image, at most 5 MB | |
| name | Yes | Where to save it in the site's image folder, without an extension, e.g. 'nasi-lemak/basic-plate' | |
| commit_message | No |