{"uid":"cap_ED8O9kWiCqwdR1du3HsF5","slug":"coding-agent-context-apis-intent-resolver-603bb42c","name":"Coding Agent Context APIs – Intent Resolver","description":"Free need-to-tool routing plus pay-per-call npm docs and TypeScript API signatures, npm breaking-change diffs, JavaScript-rendered browser snapshots and deterministic coding-agent checks via AgentCash/x402.","url":"https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/intent/resolve","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object"},"intent":{"enum":["exchange rate","currency conversion","recent earthquakes","explain cron","domain preflight","domain enrichment","mail security","email validation","dns lookup","normalize url","inspect json","json validation","sha256","text fingerprint"],"type":"string"}}},"responseSchema":{"type":"json","example":{"data":{"tool":"json-inspect","intent":"json validation","result":{},"canonical_route":"/v1/gateway/run"},"meta":{"engine":"gateway"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Reh-pQJeWA_aj1Zi9DGVm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Routes a natural-language coding intent to the correct tool (e.g. json-inspect, sha256, dns-lookup) and returns the canonical API route for that tool","exampleAgentPrompt":"I need to validate some JSON — can you figure out which tool to route this to and give me the canonical API route I should call?","exampleUseCases":[{"title":"Routing a JSON validation task","prompt":"I have a JSON blob I want to inspect and validate — can you resolve which tool handles 'json validation' and tell me the canonical route to call?"},{"title":"Finding the right DNS lookup tool","prompt":"I need to do a DNS lookup for a domain — can you resolve the intent 'dns lookup' and tell me which tool and endpoint to use?"},{"title":"Dispatching a currency conversion request","prompt":"I want to convert currencies and need to know which tool handles 'currency conversion' intent — can you resolve that for me and return the canonical route?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the matched tool name, the resolved intent string, the canonical gateway route (e.g. /v1/gateway/run), and any initial result data; plus a 'meta' field indicating the routing engine used.","failureModes":["Invalid or unsupported intent enum value — endpoint returns an error or null route","Malformed input object — request body validation failure","Payment not included or insufficient — x402 payment required error (HTTP 402) for pay-per-call tools","Cloudflare Worker cold start or timeout — transient 5xx error","Intent string submitted as free-text instead of exact enum value — routing fails or returns unexpected match"],"whenToPreferThis":"Use this endpoint when an AI coding agent needs to dynamically resolve which specific tool or API route to invoke for a given task, rather than hard-coding tool selection. Ideal for agents that receive open-ended coding or developer-utility intents and need authoritative need-to-tool routing before making downstream calls. Prefer over static routing tables when the tool landscape may change or when the agent needs to discover canonical routes at runtime.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:34:11.708Z","isFirstParty":false}