docs_lookup
Look up a short, cited, versioned documentation snippet. The first 5 unpaid lookups per client IP per UTC day are free; after that this is a paid tool ($0.01 USDC on Solana via x402). Pass paymentSignature if you already have a signed payment; otherwise the result includes the 402 payment requirement. Optional ref (a Solana address) attributes the payer so the referrer can earn 10% of this agent's paid spend for 180 days, taken from the platform share.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"q": "<q>"
},
"name": "docs_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | The question or API name | |
| ref | No | Referrer Solana address. First touch on a new payer sticks. | |
| library | No | ||
| version | No | ||
| paymentSignature | No | PAYMENT-SIGNATURE value from a prior x402 payment |