pdf_get_image
Retrieve an embedded PDF image's complete base64 payload by stream_id after extracting pages, so you can save or process the original image data.
Instructions
Fetch one embedded image's bytes as base64, addressed by the stream_id reported for that image.
Call pdf_extract_page/pdf_extract_document first and take stream_id
from an object of type image (p<page>_img_<index>, index is 0-based
within the page). On success returns {'base64', 'format', 'mime_type', 'byte_length'} with the full, untruncated payload; images in non-web formats
are transcoded to PNG. On failure returns {'error': '...'} unchanged.
The complete base64 payload is always returned inline: this tool is the one deliberate exception to the 1 MB inline limit the other tools enforce, because the image is the whole point of the call. Large images therefore produce a large response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the PDF: absolute, or relative to the server process working directory. Any readable regular file is accepted; the .pdf suffix is not required. | |
| password | No | Password for an encrypted PDF. Omit or pass null for unprotected documents. | |
| stream_id | Yes | Image identifier from a page's images array, in the form 'p<page>_img_<index>'. |