Project Remove Asset
project_remove_assetRemove a costume or sound declaration from a sprite while keeping the file in assets for other sprites. Clean up sprite definitions without deleting shared resources.
Instructions
Remove a costume or sound declaration from a sprite.
Leaves the file in assets/ in case other sprites use it.
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": {
"sprite": "<sprite>",
"kind": "<kind>",
"name": "<name>"
},
"name": "project_remove_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | "costume" or "sound". | |
| name | Yes | The costume or sound name to remove, as reported by `project_list_assets`. | |
| path | No | Project to modify. Defaults to the active project. | |
| sprite | Yes | Sprite name, i.e. its .gs filename without the extension. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |