chat_status
Poll detached chat tasks or inspect a notebook's live generation session. Batch multiple task IDs in one call to monitor progress and retry failures.
Instructions
Poll detached asks, or inspect a notebook's live generation session.
Detached-task mode: task_id accepts one id, a list, or a
comma-separated string — poll
a whole batch in ONE call and re-invoke every ~20–30s while anything
is pending. Per-task statuses:
pending(state:queuedwaiting for a generation slot, orgenerating) — re-invoke; polling never restarts a generation.completed— the fullchat_ask-shaped payload, plusqueued_s/generation_stimings.failed—error: {code, message, retriable, ...}; a retriable code is worth onechat_startretry (which re-runs the generation).unknown— no such task, or its result expired;chat_startagain.
A single string id returns that task's status dict; a list (even of
one) returns {"tasks": [...]} in input order. At most 64 ids per
call.
Live-session mode: pass notebook instead of task_id to inspect
Google's current chat session. conversation_id is optional and
defaults to that notebook's most-recent conversation. The result is
idle or generating and includes the generation token when Google
supplies one. The two modes are mutually exclusive.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "chat_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | No | ||
| notebook | No | ||
| conversation_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||