Get a command's output
get_outputRetrieve the full recorded output of a terminal command, including command line, exit code, and timing. Use a command id or negative offset to specify the command.
Instructions
Get the full recorded output of one terminal command, plus its command line, exit code, cwd and timing, as plain text (ANSI escapes stripped; secrets masked by default). id: a command id from search_output/list_commands, or negative for relative addressing (-1 = the user's most recent command, -2 = the one before it). Outputs larger than max_bytes return the head and tail around a '[... N bytes omitted ...]' marker — call again with a larger max_bytes for more. Errors with 'not found' if the id doesn't exist. Read-only: reads the recording, never re-runs the command.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | command id, or -N for Nth most recent (-1 = last command) | |
| max_bytes | No | cap on returned output size (default 51200); if the output is larger, the head and tail are returned with a gap marker |