edit_bookmarks
Add or replace bookmarks in a PDF to manage the outline or table of contents sidebar.
Instructions
Add or replace bookmarks (outline/TOC sidebar) in a 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": {
"file": "<file>",
"bookmarks": "<bookmarks>"
},
"name": "edit_bookmarks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the PDF file | |
| bookmarks | Yes | Array of bookmarks | |
| output_name | No | Output file path (defaults to same dir with suffix) |