scaffold_hook
Generate a starter Xahau Hook C source for specified intent (accept_all, firewall, etc.) with build instructions and guards, ready for offline compilation and verification.
Instructions
Generate a starter Xahau Hook in C for a stated intent (accept_all, firewall, payment_limit, require_dest_tag, state_counter, notary) — structurally valid (hook() entry, _g guards, accept/rollback) with build instructions. A STARTING POINT to compile + then verify with analyze_hook/execute_hook before deploying. Offline.
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": {
"archetype": "<archetype>"
},
"name": "scaffold_hook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxDrops | No | for payment_limit: max native drops to allow | |
| archetype | Yes | ||
| blockTxType | No | for firewall: tx type to reject, e.g. Payment |