Check Device Auth
check_device_authCheck if the user has completed browser sign-in for a device auth request.
Poll this after calling initiate_device_auth. Returns status 'pending'
while waiting, or 'complete' with an api_key when the user has signed in.
Use the returned api_key as the authorization parameter in other tools.
Args:
user_code: The user_code returned by initiate_device_auth.
Returns:
Pending: {"status": "pending"}
Complete: {"status": "complete", "api_key": "hk_..."}
Error: {"error": "..."}
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": {
"user_code": "<user_code>"
},
"name": "check_device_auth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |