Spawn a Devin subagent
spawnLaunch a background Devin session to run a task in parallel, returning immediately while progress is tracked via polling.
Instructions
Create a new Devin session and start it on a task in the background. Returns immediately; use poll to watch progress. Multiple subagents can run in parallel.
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>",
"task": "<task>"
},
"name": "spawn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute working directory for the session (default: bridge cwd) | |
| mode | No | Permission mode to set (e.g. 'bypass'); default: config file 'mode' or 'smart' | |
| name | Yes | Unique handle for this subagent ([A-Za-z0-9._-]) | |
| task | Yes | The task prompt for the subagent | |
| model | No | Model to confirm (e.g. 'swe-2-max'); default: config file 'model' or 'swe-2-max' |