End a cast or emergency
end_takeoverEnd a running takeover or emergency on every screen it covers, in one call.
When to use:
Taking down what start_takeover started, early.
When NOT to use:
Changing default content: use set_screen_content.
Calling once per screen: one call ends it everywhere.
What to know:
Screens return to their normal content at once. Ending one that already ended succeeds with alreadyEnded:true; an unknown id fails and lists what is running. Needs screen.cast (emergency-override.create for an emergency).
Parameters:
castId: the castId start_takeover returned, an emergency id (emg_…), the id of the content on screen, or the takeover's exact headline. The last two end every running takeover of it. Find running ones with list_items kind casts or emergencies.
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": {
"castId": "<castId>"
},
"name": "end_takeover"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| castId | Yes | The takeover to stop: the castId that start_takeover returned, or an id from list_items kind casts or emergencies. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ended | No | Only when castId named content or a headline: one row per takeover that ended. | |
| castId | No | Id of the takeover that ended (the first one when several ended). | |
| castIds | No | Only when castId named content or a headline: the id of every takeover that ended. | |
| alreadyEnded | No | true when it had ended before this call, so nothing changed. | |
| screensReleased | No | How many screens went back to their normal content. |