pdf_extract_text
Extract text content from PDF files. Specify a page range or extract all pages.
Instructions
从 PDF 文件中提取文本内容。
支持提取所有页面或指定页面范围的文本。页面之间用换行符分隔。
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": "pdf_extract_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | PDF 文件路径(支持相对路径和绝对路径) | |
| page_range | No | 页码范围 (start, end),1-based,None 表示提取所有页面。例如 [1, 5] 表示第 1 到第 5 页 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |