convert_to_markdown
Converts PDF, DOCX, XLSX, and CSV files into compact markdown before they enter the context window, reducing token usage by up to 98%.
Instructions
Called automatically by the PreToolUse hook when Claude Code reads a file. Converts PDF, DOCX, XLSX, and CSV files to compact markdown before they enter the context window, reducing token usage by up to 98%.
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": "convert_to_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool_input | No | The hook event tool_input payload from Claude Code |