compress_document_tool
Convert PDF and DOCX files into compressed Markdown by removing visual bloat and repeated headers, saving up to 80% tokens for LLM context windows.
Instructions
[Cost: $0.0030 USDC on Base & Solana] Extracts and compresses PDF and DOCX documents into token-optimized Markdown.
Strips visual bloat and repetitive headers/footers to save up to 80% tokens for LLM context windows.
Args:
url: HTTP/HTTPS URL of the PDF or DOCX file to download and compress.
base64_data: Optional base64-encoded binary content of the document.
filename: Optional filename to assist with format detection (e.g. 'paper.pdf').
payment_signature: Optional x402 Base/Solana USDC transaction hash or developer mock key.
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": "compress_document_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| filename | No | ||
| base64_data | No | ||
| payment_signature | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |