Replace a stored object (paid, x402)
storage_replacePAID: replace the contents of a stored file you own, keeping its id, with a fresh plan term. Unpaid, it returns the price; pay with x402 (USDC on Base, Solana, Polygon, Arbitrum, Avalanche, Sei or X Layer) in _meta['x402/payment'] and call again. Feedback: POST /feedback (free). Read daily; no individual reply. Price: from $0.0100 USDC.
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": "storage_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The object id returned when it was bought. | |
| plan | No | Storage plan; it sets both the size limit and the price. See GET /pricing or the service_card tool for the live table. | |
| label | No | Optional caller-chosen label, up to 256 characters, no control characters. | |
| contentBase64 | No | The replacement bytes, base64-encoded. Decoded size must fit the plan. |