Px Image Base64
px_image_base64Returns PNG bytes as a base64 text field in JSON, preserving transparency and optional downscaling, so callers can decode and write the file themselves.
Instructions
Return a PNG file's bytes as a PLAIN TEXT base64 field in the JSON result ({"png_base64": "iVBORw0...", "mime": "image/png", "bytes": N, ...}) instead of an ImageContent block, so the caller can decode and write it themselves (e.g. into a sandboxed outputs directory). Transparency is preserved. max_side=0 keeps the original size; otherwise downscale before encoding.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_side | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||