fetch
402, AgentCash attempts SIWX first and only pays if the route still requires it. Equivalent to the MCP fetch tool.
Output includes all headers from the final endpoint response in result
metadata (or error details for an HTTP error). This preserves raw MPP
payment-receipt and x402 payment-response / x-payment-response proof when
the server supplies it.
Options
Example
fetch-auth
fetch. It uses the same unified flow and accepts the same options, but new integrations should call fetch directly.
check
check_endpoint_schema tool.
Call this before fetch to avoid 400 errors from wrong field names.
Options
Example
discover
discover_api_endpoints tool.
Options
Example
search
search tool.