g_set_code
Sets an OAuth authorization code manually for headless machines. Use this fallback when automated authorization is not possible.
Instructions
Manual fallback: paste an authorization code obtained by opening the authorize_url with a known redirect_uri (for headless machines).
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": {
"code": "<code>",
"redirect_uri": "<redirect_uri>"
},
"name": "g_set_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| redirect_uri | Yes | The exact redirect_uri used to get the code, e.g. http://127.0.0.1:5000 |