get_pdf_object
Retrieve a PDF indirect object by its number and generation, showing raw data, parsed structure, type, and optional stream decoding.
Instructions
Return a PDF indirect object by object/generation number, including raw object preview, parsed structure, object type, and stream metadata.
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"
}
}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. | |
| 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. |