finish_authentication
Complete Trakt login by exchanging the approved device code for an access token, finishing the authentication flow started earlier.
Instructions
Exchange an approved device code for a stored token.
Args: device_code: The device_code returned by start_authentication. wait_seconds: How long to keep polling while you approve in the browser. 0 checks once and reports whether approval is still pending, which is the better default for an interactive session.
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": "finish_authentication"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_code | Yes | ||
| wait_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |