Change a subagent's permission mode
set_modeSwitch a Devin subagent session to a specified mode (like bypass or smart) by providing the mode ID and subagent handle, with validation against the session's available modes.
Instructions
Switch the session's mode (e.g. 'bypass', 'smart'). Validated against the session's advertised availableModes 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>",
"mode": "<mode>"
},
"name": "set_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Mode id from the session's availableModes | |
| name | Yes | Subagent handle returned by spawn, e.g. 'coder-auth' |