extract_page_text
Extract text from a specific PDF page, with options for default, layout, or simple extraction modes. Returns extracted text and page statistics.
Instructions
Extract text from a specific PDF page with various extraction options.
Args:
file_path: Path to PDF file
page_number: Page number to extract (1-based)
extraction_mode: Text extraction mode ('default', 'layout', 'simple')
Returns:
JSON string with extracted text and statistics
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>",
"page_number": "<page_number>"
},
"name": "extract_page_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| page_number | Yes | ||
| extraction_mode | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |