Add an image or PDF figure
add_imageAdds an image (PNG or JPEG) or a PDF figure to a project as a file, from a file the person attached in this conversation (file) or from a public https address (url). Returns the file's path and the \includegraphics line that places it. Image data never needs to be written as text.
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": {
"project_id": "<project_id>"
},
"name": "add_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A public https address of a PNG, JPEG or PDF, when the image is on the web. | |
| file | No | A file the person attached in the conversation. | |
| path | No | Where to put it, e.g. figures/results.png. Optional: by default the project's figures folder and the file's own name. | |
| project_id | Yes | The project's id, from list_projects. |