market_invoke
Invoke a capability found via market_search. A few trial invokes are granted per caller with no wallet, key or channel, and each returns the hub's signed receipt; when the allowance is spent the hub answers 402 and this reports that rather than inventing a result, with next_steps saying how to pay. Paid access uses payment_channel (+ secret) or an on-chain x402 payment (x_payment + x_payment_nonce).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Input object for the capability; {} when it takes none. | |
| x_payment | No | x402 seller-direct payment: the hash of the USDC transfer you broadcast for the 402's invoice (see next_steps). | |
| product_id | Yes | The product_id from market_search. | |
| source_hub | No | The source_hub from market_search, when it shows one. Required for federated capabilities — most of the catalogue; omitting it makes the hub look for the capability locally and answer 404. | |
| capability_id | Yes | The exact capability_id from market_search. | |
| max_price_usd | No | Atomic total-price ceiling. Copy the selected search result's max_price_usd here; the Hub returns price_limit_exceeded before work or payment if the route was repriced. | |
| payment_channel | No | ||
| x_payment_nonce | No | The invoice nonce from the 402 that x_payment pays. | |
| include_full_receipt | No | Return the hub's raw response, including the full hybrid Ed25519 + ML-DSA-65 receipt signature (about 7 KB). | |
| payment_authorization | No | ||
| payment_channel_secret | No |