manage_extensions
Discover, validate, create, hot-update, roll back, or run schema-validated AI extensions for Brotato, including strategy, patch, profile, behavior, and macro kinds.
Instructions
Discover, inspect, create, hot-update, delete, rollback, or run AI extensions under state_dir/extensions/.
START HERE: action="schema" (kind optional) returns every kind, hook, condition variable/function,
limit and a ready-to-edit template, so you never need to guess formats.
- action: schema | validate | list | get | upsert | delete | rollback | run
- kind: strategy | patch | profile | behavior (combat/shop/upgrade/item_box/reroll/lock/death hooks) | macro
- run (kind=macro): payload={"state"?: snapshot, "character_id"?: str, "execute"?: bool}; execute=False
(default) only plans writes; execute=True drives the live game and requires no active runner.
All writes are schema + whitelist-AST validated, atomic, versioned, and allowed while runner is active.
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": {
"action": "<action>"
},
"name": "manage_extensions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| name | No | ||
| steps | No | ||
| action | Yes | ||
| dry_run | No | ||
| payload | No | ||
| expect_base | No |