table_of_contents
Add a clickable table of contents to a PDF, with custom chapter titles and page numbers for direct navigation.
Instructions
Add a table of contents page to a PDF with clickable entries.
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>",
"entries": "<entries>"
},
"name": "table_of_contents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the PDF file | |
| entries | Yes | TOC entries | |
| output_name | No | Output file path (defaults to same dir with suffix) |