compress
PCC compress. POST /v1/compress. Same engine as spl_compress. First 1 GB free once per IP, then $0.25/GB. A tool credential is required on the HTTP door. This is not Tollkeeper pcc-compress.
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": {
"data_b64": "<data_b64>"
},
"name": "compress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Bearer key or raw key when the door requires a tool credential. | |
| payment | No | x402 X-PAYMENT. Omit it and a paid door answers 402. | |
| data_b64 | Yes | Base64 bytes to compress. | |
| authorization | No | Authorization header when the door is a Tollkeeper tool (Bearer ar_…). |