save_sprite
Saves the active sprite to disk, using the given path for save-as or its existing filename, and persists edits. In headless mode, pass both file and path to write a copy without changing the source.
Instructions
Save the active sprite to disk: to path if given (save-as; the
document's filename follows it), else to its own filename — errors if
the sprite is untitled and no path is given. Live: persists the
edits sitting in the open editor. Headless: mutating tools already
save to file on their own; use this with both arguments to write a
copy of file under a new path (the source file on disk stays
untouched).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "save_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| path | No |