x402_scratchpad_post_v1_scratch
Persists namespace-scoped key-value entries for agents with optional TTL, allowing state to survive across runs and retries.
Instructions
scratchpad — Persistent key-value store for agents (D1-backed, TTL, namespace-scoped) [POST /v1/scratch] $0.005 USDC on eip155:8453. Example: {"ns":"my-ns","key":"k","value":{"msg":"hi"},"ttl_s":3600}
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "x402_scratchpad_post_v1_scratch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for POST/PUT/PATCH/DELETE | |
| query | No | Query parameters, e.g. {base:'USD', quote:'EUR'} | |
| restart | No | Explicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete. | |
| operationId | No | Durable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments. |