Ask the principal to approve an action
twin_request_approvalRequest approval for a needed action when the authorization check says ask, then wait until the principal approves or declines it in their terminal before acting.
Instructions
Call when twin_authorise says 'ask' and the work needs that action. Records one request the principal approves or declines in their own terminal. Do not act until twin_approval_status says approved; an approval covers one attempt unless they say more.
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": {
"workflow": "<workflow>",
"action": "<action>",
"summary": "<summary>"
},
"name": "twin_request_approval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The one action you need approved, for example repo.push. | |
| details | No | Anything that helps them decide: recipients, amounts, a diff summary. | |
| sources | No | ||
| summary | Yes | What you will do and why, in a sentence or two. The principal decides on this. | |
| workflow | Yes | ||
| request_id | No | Optional idempotency key, for example your tool call id. A retry with the same request_id returns the first result instead of recording twice. |