pdf_annotate
Apply annotations to PDFs using keyword searches, regex patterns, or predefined rules, then save the annotated document to a specified output path.
Instructions
Applies annotations to a PDF document. [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_annotate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The input PDF file path. | |
| regex | No | Regex pattern to find and annotate. | |
| rules | No | List of pattern/rule-based annotation objects (type, color, search, regex, occurrence). | |
| output | Yes | The output PDF file path. | |
| search | No | Keyword text to find and annotate. | |
| annotations | No | A list of annotation objects to apply. |