Escalate if needed
escalate_if_neededEscalates difficult questions to Cursor, Grok, or Claude through the Frontier helper when a local answer is insufficient, returning the cloud model’s answer and escalation status.
Instructions
Send a hard question to Cursor, Grok or Claude via the Frontier helper. Use ask_frontier for the same call without a reason field. Use identify_handoff_triggers to decide whether to escalate. Calls the network. Needs the matching API key. Returns JSON with escalated, answer and hook_api.
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": {
"question": "<question>"
},
"name": "escalate_if_needed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional reason recorded in the result. Default empty. | |
| provider | No | Cloud provider: cursor, grok or claude. Default cursor. | |
| question | Yes | Question to send to the cloud model. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |