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%.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool_input | No | The hook event tool_input payload from Claude Code |