Change a subagent's model
set_modelChange an idle subagent session's model to a validated model ID, waiting until the session is idle before applying the update.
Instructions
Switch an idle session's model via session/set_config_option and confirm the echoed value (e.g. 'swe-2-high'). Rejected while the session is starting/running/stopped/dead — resume or wait for idle first. Validated against the advertised model list when known.
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": {
"name": "<name>",
"model": "<model>"
},
"name": "set_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Subagent handle returned by spawn, e.g. 'coder-auth' | |
| model | Yes | Model id from the session's advertised list |