bash
Execute a bash command in the current working directory. Returns stdout and stderr. Output is truncated to last 2000 lines or 50KB (whichever is hit first). If truncated, full output is saved to a temp file. Optionally provide a timeout in seconds.
| parameter | type | what it is |
|---|---|---|
command * | string | Shell command to execute |
timeout | number | Timeout in seconds (optional, no default timeout) |
read
Read the contents of a file. Supports text files and images (jpg, png, gif, webp, bmp). Images are sent as attachments. For text files, output is truncated to 2000 lines or 50KB (whichever is hit first). Use offset/limit for large files. When you need the full file, continue with offset until complete.
| parameter | type | what it is |
|---|---|---|
path * | string | Path to the file to read (relative or absolute) |
offset | number | Line number to start reading from (1-indexed) |
limit | number | Maximum number of lines to read |
* required