Return to main menu
disconnectExit the current map to the main menu and wait for client and server realms and Lua states to end; returns busy or timeout errors.
Instructions
Leaves the current map for the main menu (console disconnect) and waits until the client and server realms are gone; their Lua states are destroyed. Client only (unsupported on srcds). Result: {disconnected, was_in_game, duration_s, realms}. Errors: busy (a map_load runs), timeout.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "disconnect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | Optional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance. | |
| timeout_s | No | Default 30. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| note | No | ||
| realms | Yes | ||
| warning | No | ||
| next_call | No | ||
| duration_s | Yes | ||
| answered_by | No | ||
| was_in_game | Yes | ||
| disconnected | Yes | ||
| truncated_note | No | ||
| version_warning | No |