cap_check
Check if an action is allowed or denied against a published capability string; when allowed, return a cap token to verify before spend/send hops.
Instructions
ALLOW/DENY an action against a published cap string (local pure function; same as POST /cap-check). On allow + CAP_TOKEN_SECRET, includes cap_token. action: spend|send|read|write|other. Spend/send must then pass token to cap_token_check before hop.
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": {
"cap": "<cap>",
"action": "<action>"
},
"name": "cap_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | Yes | ||
| card | No | ||
| action | Yes |