get_pdf_content_stream
Extract raw and decoded PDF content stream bytes and text from a page number or stream object, with optional operator parsing for debugging.
Instructions
Return PDF content stream bytes and decoded text from either a 1-based page number or a stream object number, with optional operator parsing.
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>"
},
"name": "get_pdf_content_stream"
}
}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. | |
| pageNumber | No | 1-based page number. Use this or objectNumber. | |
| decodeStream | No | Decode supported stream filters such as FlateDecode, ASCIIHexDecode, ASCII85Decode, and RunLengthDecode. | |
| objectNumber | No | Stream object number. Use this or pageNumber. | |
| parseOperators | No | Return a lightweight token/operator analysis for decoded PDF content streams. | |
| generationNumber | No | PDF indirect object generation number. |