Run the AI Coach on a replay
analyze_replayRuns StarCraft2.ai's AI Coach on an uploaded replay to produce a coaching report, waiting up to wait_seconds before returning while the run continues.
Instructions
Run StarCraft2.ai's AI Coach on an uploaded replay. COSTS 1 MINERAL (the site's paid credits) unless the replay already has a report, which is returned free. Refuses to spend unless confirm_spend is true — tell the user the price and their balance and get a yes first. A run takes 3–7 minutes: this waits up to wait_seconds, then returns and the run continues; call get_analysis to collect it. Failed runs are refunded by the site.
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": {
"replay": "<replay>"
},
"name": "analyze_replay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| replay | Yes | Replay id, short id, slug, or a StarCraft2.ai replay URL. | |
| upgrade | No | Re-run an existing report that was made with an older coach version. Free; only works when the report is outdated. | |
| language | No | Report language (default en). | |
| wait_seconds | No | Max seconds to wait before returning (default 50). | |
| confirm_spend | No | Set to true ONLY after the user has explicitly agreed, in this conversation, to spend 1 mineral on this. Never set it on your own initiative. |