Aftersearch Resolve
aftersearch_resolveConvert a natural-language query into machine intent, a bounded Evidence Pack, and one immutable x402 job with a fresh quote pointer. Use this when an agent needs to turn a what-would-I-Google question into a priced, quotable evidence job before any payment. Returns the immutable job_id plus the public job summary; on invalid input returns a structured input_rejected error instead of a job. Creates one server-side job record per call (a side effect) but never spends or moves funds. For example, asking whether a token contract is safe becomes an intent-scored Evidence Pack with fresh PAYMENT-REQUIRED terms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The natural-language question to compile into intent and an Evidence Pack (1-60000 chars). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Whether the upstream HTTP status is 2xx; not settlement proof. | |
| body | No | Unmodified upstream JSON, or bounded response text. Consult that capability's live schema. | |
| error | No | ||
| charged | No | Present on local/transport failures; these do not establish an upstream charge. | |
| message | No | ||
| auto_spent | No | ||
| status_code | No | Observed upstream HTTP status, or null when no response was obtained. | |
| substituted | No | ||
| content_type | No | ||
| payment_required | No | Observed PAYMENT-REQUIRED header; a challenge does not prove payment. | |
| payment_response | No | Observed PAYMENT-RESPONSE header. Assess it together with accepted delivery. | |
| caller_supplied_authorization | No |