spawn_client_leave
End a Spawn session and despawn the body gracefully, journaling the departure before the socket closes. Call when done; the room folds when the last body leaves, and an idle session self-expires.
Instructions
End the session and despawn the body — the graceful departure (the despawn is journaled before the socket closes). The room folds when the last body leaves, so spawn_exec and spawn_logs stop working after this until something else is standing. Call it when you are done; a session left alone self-expires at its ttl anyway.
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": "spawn_client_leave"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | Session name, so one machine can stand more than one body (default 'default'). Every verb takes it; a session self-expires at its ttl. | |
| projectDir | No | Absolute path to the Spawn game project (.env). Defaults to SPAWN_PROJECT_DIR or the MCP process cwd. |