get_pdf_outline
Extract the table of contents or bookmarks from a PDF file, returning a hierarchical outline with page numbers.
Instructions
获取PDF的书签/目录结构(大纲)。
Args: file_path: PDF文件的完整路径
Returns: 包含以下信息的字典: - has_outline: 是否有目录 - outline_count: 目录条目数量 - outline: 目录列表,每个元素包含: - level: 层级(1开始) - title: 标题 - page: 页码
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_path": "<file_path>"
},
"name": "get_pdf_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |