get_pdf_object_structure
Recursively expand a PDF indirect object's structure and resolve indirect references with configurable depth and circular reference protection.
Instructions
Recursively expand a PDF indirect object's structure and indirect references with maxDepth and circular-reference protection.
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": {
"filePath": "<filePath>",
"objectNumber": "<objectNumber>"
},
"name": "get_pdf_object_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to a PDF file. Relative paths are resolved from the MCP server process cwd. | |
| maxBytes | No | Maximum bytes to include in raw/decoded stream or object previews. | |
| maxDepth | No | Maximum recursion depth when expanding object references. | |
| decodeStream | No | Decode supported stream filters such as FlateDecode, ASCIIHexDecode, ASCII85Decode, and RunLengthDecode. | |
| objectNumber | Yes | PDF indirect object number. | |
| generationNumber | No | PDF indirect object generation number. |