get_outline
List a PDF's bookmarks in reading order with levels, titles, target pages, links, or actions so you can edit and save changes via set_outline.
Instructions
List a PDF's bookmarks (its outline) in reading order: each one's level (1 = top, 2 = nested under the one before, ...), title and 1-based target page (null if it doesn't go to a page here). Bookmarks that open a web or email address have link set; ones that do something else (e.g. run a script) have action set. truncated means some were left out (over 10,000, or nested over 20 levels). Edit the list and pass it to set_outline to change them.
Any password argument can be "ask": the user then types it on a local page, so it never passes through the chat.
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_path": "<input_path>"
},
"name": "get_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | No | ||
| input_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| entries | Yes | ||
| truncated | Yes | ||
| page_count | Yes |