get_pdf_annotations
Extract annotations such as comments, highlights, and underlines from PDF files. Optionally specify a page range to retrieve annotation details including page number, type, content, and author.
Instructions
获取PDF中的注释(批注、高亮、下划线等)。
Args: file_path: PDF文件的完整路径 pages: 要提取的页码范围(可选,默认全部页面)
Returns: 包含以下信息的字典: - total_annotations: 注释总数 - annotations: 注释列表,每个包含: - page: 页码 - type: 注释类型 - content: 注释内容 - author: 作者
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_annotations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | ||
| file_path | Yes |