Route Task
route_taskRead-only
Use this when the caller needs to discover and rank live x402 providers for a task before choosing downstream spend. KlearFlow does not execute the selected provider. Routing costs $0.005 via x402 Base USDC.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Plain-English capability the caller wants a live x402 provider to perform. | |
| limit | No | Maximum number of ranked provider candidates to return. | |
| maxPriceUsd | No | Optional maximum listed provider price in USD. | |
| excludeHosts | No | Optional provider hostnames to exclude from the ranked result, useful to avoid self-routing or previously rejected providers. | |
| preferPaidVerified | No | When true, rank providers with independent paid-verification evidence higher. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Routing result containing the ranked live x402 provider candidates and the selected recommendation; no downstream provider is executed. | |
| payment | Yes | ||
| proofId | Yes | Unique KlearFlow proof identifier for this settled paid execution. | |
| priceUsd | Yes | USDC-denominated execution price settled through x402. |