Save File
save_fileSave chart exports in PNG or CSV format directly to your Downloads folder. Invoked automatically from the chart's download buttons.
Instructions
Save a chart export (PNG or CSV) to the user's Downloads folder. App-only - invoked by the chart View's Download buttons, not by the AI.
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": {
"filename": "<filename>",
"data": "<data>",
"encoding": "<encoding>"
},
"name": "save_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | File contents: base64-encoded binary or plain text | |
| encoding | Yes | How data is encoded | |
| filename | Yes | Filename with extension (.png or .csv only) |