pdf_invert_colors
Recolor PDF pages into dark mode, true invert, high contrast, or sepia for night reading and accessibility. Converts white-background PDFs into eye-friendly output by modifying page color streams.
Instructions
Recolor PDF pages into dark mode, true inverted colors, high contrast, or sepia palette for night reading or accessibility. When to use: transforming white-background PDFs into eye-friendly dark mode, sepia, or high-contrast output. Difference from related tools: modifies PDF page color streams directly rather than rendering static images (use pdf_render) or compressing streams (use pdf_compress). Key parameters: input, output; optional mode ('dark_mode', 'true_invert', 'high_contrast', 'sepia'; default 'dark_mode'), pages (1-based CSV). [Input: PDF (.pdf) | Output: PDF (.pdf)]
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": {
"input": "<input>",
"output": "<output>"
},
"name": "pdf_invert_colors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Color transform preset (default 'dark_mode'). | dark_mode |
| input | Yes | Path to the input PDF file. | |
| pages | No | Optional comma-separated 1-based page numbers (e.g., '1,3,5'); defaults to all pages. | |
| output | Yes | Destination path for the color-transformed .pdf file. |