persist_image
Downloads an image from a URL and saves it to a workspace folder, creating the folder automatically if it doesn't exist.
Instructions
Store image at URL to folder relative to current workspace. If targetPath does not exist, the tool will create it automatically.
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>",
"targetPath": "<targetPath>",
"workspacePath": "<workspacePath>"
},
"name": "persist_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the image | |
| targetPath | Yes | Folder where to save the image (relative to the current workspace) | |
| workspacePath | Yes | The current workspace absolute path |