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.
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": {
"path": "<path>"
},
"name": "read_mac_file"
}
}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. |