check_agent_connection
Poll for the human's decision on a start_agent_connection request.
Call this roughly every `interval` seconds (from the start call's
own response) using the SAME `device_code`.
Returns `{"status": "pending"}` while waiting, `{"status":
"denied"}` or `{"status": "expired"}` if the human declined or the
code timed out, or `{"status": "approved", "session_token": "...",
"user": {...}}` once approved -- stop polling once you see
"approved", the code is now spent and a second poll reports it as
expired. Hold onto `session_token` for the rest of this
conversation and pass it to every tool below that takes one --
treat it as a secret: never display it to the human or repeat it
back verbatim unless they specifically ask to see it. The resulting
access matches whatever tier (User/Subscriber/Admin) the approving
human's account already has -- this flow grants no special agent-
only access, and the human can revoke this connection at any time
from their own Account Security page.
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": {
"device_code": "<device_code>"
},
"name": "check_agent_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_code | Yes | The `device_code` start_agent_connection returned. |