apply_highlight
Adds a reviewed exact-match highlight to a PDF page after checking its source fingerprint, writing a new annotated copy without altering the original.
Instructions
Apply a proposed exact-match highlight with a checked source fingerprint.
New output must not exist. For subsequent updates, the input and output may be the same *-annotated.pdf file when overwrite_annotated_copy is true. Do NOT call without showing the proposal to the user for review.
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": {
"file": "<file>",
"output_file": "<output_file>",
"page": "<page>",
"exact_quote": "<exact_quote>",
"expected_fingerprint": "<expected_fingerprint>"
},
"name": "apply_highlight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| page | Yes | ||
| color | No | yellow | |
| opacity | No | ||
| occurrence | No | ||
| exact_quote | Yes | ||
| output_file | Yes | ||
| expected_fingerprint | Yes | ||
| overwrite_annotated_copy | No |