set_active_sprite
Activate an open Aseprite document by exact filename or basename so later tools target it, even after another tab is clicked. Live editor only; use pin_sprite for unsaved sprites with duplicate names.
Instructions
Live editor only: make one of the open documents active, found by
exact filename or basename match (e.g. "turret.aseprite"). Returns
which sprite matched and how. Subsequent tools operate on it, even if the
artist clicks another tab. Unsaved sprites share a name: pick those with
pin_sprite.
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>"
},
"name": "set_active_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes |