Finish Crunch login
crunch_complete_authCompletes Crunch login by exchanging the authorization code for tokens and saving them to the token file; accepts the redirected URL or code with state.
Instructions
Finish a login started with crunch_start_auth by exchanging the authorisation code for tokens, which are saved to the token file. Pass the full URL the browser was redirected to, or just the code together with the state crunch_start_auth returned.
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": {
"redirected_url": "<redirected_url>"
},
"name": "crunch_complete_auth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | The state crunch_start_auth returned; only needed when redirected_url is just the code | |
| redirected_url | Yes | The full URL from the browser's address bar after clicking Allow (it contains code= and state=), or just the code |