session_output
Read the last lines of a session's terminal output and its status to inspect results, errors, or progress. Returns cleaned stdout/stderr and current state.
Instructions
Read the last lines of a session's terminal output (stdout and stderr merged, colors and progress redraws cleaned up), plus its status.
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": {
"id": "<id>"
},
"name": "session_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session id, as returned by `list_sessions` or `fire --bg`. | |
| lines | No | How many trailing lines of output to return (default 100). |