extract_pdf_links
Extract all external URLs and internal cross-references from PDF files. Optionally specify page ranges to limit extraction.
Instructions
提取PDF中的所有链接(URL和内部跳转)。
Args: file_path: PDF文件的完整路径 pages: 要提取的页码范围(可选,默认全部页面)
Returns: 包含以下信息的字典: - total_links: 链接总数 - external_links: 外部URL链接列表 - internal_links: 内部跳转链接列表
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": "extract_pdf_links"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | ||
| file_path | Yes |