save_selection
Save a named selection from a document to reuse as a region parameter in other drawing operations.
Instructions
Store a named selection that region parameters can reference later.
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": {
"doc_id": "<doc_id>",
"name": "<name>",
"region": "<region>"
},
"name": "save_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| doc_id | Yes | Document id | |
| region | Yes | Region: exactly one of 'rect', 'pixels', or 'selection' |