Wait for Jules Session to Complete
jules_wait_for_sessionPoll a Jules session until it finishes, tracking progress and returning final state, summary, and PR details within a set wait limit to prevent timeouts.
Instructions
Wait/poll for a Jules session to complete. Automatically tracks progress, emits progress notifications, and returns a unified payload with final state, summary, and PR details upon resolution. Bounded by a wait limit to prevent timeouts.
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": {
"sessionId": "<sessionId>"
},
"name": "jules_wait_for_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID to wait/poll for | |
| maxWaitSeconds | No | Maximum time to wait/poll in seconds (default: 60, max: 300) | |
| includeActivities | No | Number of recent activities to include in the output (default: 5) |