jules_wait_for_session
Wait for a coding session to complete, fail, pause, or await user feedback, returning when it stops actively running. Eliminates manual polling with a bounded timeout.
Instructions
Poll a Jules session until it stops actively running or until timeout.
Returns when the session reaches COMPLETED, FAILED, PAUSED, AWAITING_PLAN_APPROVAL, or AWAITING_USER_FEEDBACK. This is useful after creating a task when the caller wants a bounded wait instead of manual polling.
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>"
},
"name": "jules_wait_for_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| timeout_seconds | No | ||
| poll_interval_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||