Wait for a Devin session
devin_waitBlocks until a Devin session changes status or the timeout expires, then returns the current state and last message. Use it to monitor subagent progress without polling in a tight loop.
Instructions
Blocks until the session status changes (or seconds pass) and returns it: running (with branch tip), question, idle (turn finished without a marker; full text), done (turn finished and the last message starts with BİTTİ:), error, stopped. The last message follows the JSON block verbatim. Disconnects are retried internally. Do not call it in a tight loop.
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": {
"id": "<id>"
},
"name": "devin_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session id returned by devin_run (format devin-<hex>) | |
| seconds | No | Maximum wait in seconds (default 600, max 3600) |