complete_authorization
Finish adding an X account by submitting the full callback URL (with code and state) from the browser when the automatic listener is unavailable. Codes expire in ~30 seconds.
Instructions
Fallback when the automatic callback listener is unavailable: finish add_account with the full callback URL from the browser address bar (contains code and state). X codes expire ~30 seconds after approval.
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": {
"redirect_url": "<redirect_url>"
},
"name": "complete_authorization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| redirect_url | Yes | Full callback URL, e.g. http://127.0.0.1:8765/callback?state=...&code=... |