Save Image
save_imageSave an image from a public HTTPS URL, data URI, or local path to disk and return the saved file path, keeping generated outputs after their URLs expire.
Instructions
Save an image to local disk (defaults to the configured download directory) and return the saved file path. Accepts a public HTTPS URL, an inline data:image/;base64, URI, or a local file path. Generation output URLs are public but may expire, so saving keeps a permanent copy. Consumes no API balance.
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": "save_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Optional target directory. Defaults to MYARCHITECTAI_DOWNLOAD_DIR (or ./renders). | |
| url | Yes | Image to save: a public HTTPS URL, an inline data:image/<mime>;base64,<payload> URI, or a local file path (absolute, ~, or file://). | |
| filename | No | Optional filename (extension inferred from the content type if omitted). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path the image was saved to. | |
| bytes | Yes | Size of the saved file in bytes. | |
| mimeType | Yes | Content type of the saved image. |