pdf_get
Retrieves PDF file details from a given path, supplying metadata and structure to support translation with layout preservation.
Instructions
Retrieves detailed information about a PDF file.
Args: path: PDF file path (absolute or relative to home directory)
Returns: PDF resource with detailed information
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": {
"path": "<path>"
},
"name": "pdf_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | PDF file path (absolute or relative to home directory) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | PDF file path (absolute or relative to home directory) | |
| page_count | No | Number of pages in the PDF | |
| size_bytes | Yes | File size in bytes |