session_read_file
Read a file from an execution session workspace, returning text or an inline image when as_image is enabled.
Instructions
Read a file from a session workspace.
Text files return content. With as_image=True (or for image files), the file is returned as an inline image the model can see. Use session_files to discover paths; session_artifacts lists what executed code produced.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| as_image | No | ||
| max_bytes | No | ||
| session_id | Yes |