battle_upload_version
Upload a bot's JavaScript controller version, run a 400-tick smoke test, and make it the active ranked controller if the test passes.
Instructions
Upload a controller version for one of your bots (needs BATTLE_TRAINING_KEY). Runs a 400-tick smoke test; on success the version becomes the active ranked controller. Source is JavaScript, max 256 KiB.
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": {
"bot": "<bot>",
"label": "<label>",
"source": "<source>"
},
"name": "battle_upload_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot | Yes | Bot name | |
| label | Yes | Version label, e.g. v1 | |
| notes | No | ||
| source | Yes | Full JavaScript controller source |