set_session_mode
Define a session's mode as 'serial' or 'subagent' once, locking it for the session's lifetime to prevent changes after initial assignment.
Instructions
Set a session's mode. Only succeeds if no mode is set yet -- once set, mode is immutable for the life of the session.
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": {
"session_id": "<session_id>",
"mode": "<mode>"
},
"name": "set_session_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||