context-trim
Context trim. Any text in, URL-encoded as the text query parameter (up to 12,000 bytes), a leaner rendering out: line endings normalized, trailing whitespace stripped, blank runs collapsed, adjacent duplicate lines dropped, an optional budget query parameter trimming to a character count at a paragraph, sentence, or word boundary, every change counted. Price: $0.02 per call, paid in USDC on Base mainnet over x402; an unpaid call answers HTTP 402 with the exact machine-readable payment terms.
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": {
"text": "<text>"
},
"name": "context-trim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to trim (up to 12,000 bytes). | |
| budget | No | Optional character budget, an integer between 200 and 12,000 (default 2,000). |