Read a file on a Mac
read_mac_fileReads a file on the Mac, up to max_bytes (default 1 MiB, max 3 MiB): text as text, PNG, JPEG, GIF and WebP whole as an image, other files as base64; a larger binary file comes back as its size and details only. Relative paths are in the workspace. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File to read. Relative paths are in the session workspace; ~ is the home folder. | |
| max_bytes | No | Read at most this many bytes (default 1 MiB, max 3 MiB). | |
| session_id | No | Mac session ID (ses_…). Optional: without it, the account's running Mac. |