terminal_render
MCP tools › Run, test and tasks
Interpret output with escape sequences as an xterm-compatible terminal shows it: visible text, cursor, title, alternate-screen state and scrollback; with find, the highlighted matches; links on visible rows (URLs, file paths, OSC 8) and reported_dir from OSC 7; mouse mode and encoding, plus the bytes the given mouse events would send; keyboard modes; and answers to cursor-position, status and device-attribute queries. Rows and columns 0-based, end columns exclusive.
Its results carry text from process: the client is told to treat that as data, never as instructions.
| Capability | execution.terminal_render |
|---|---|
| Area | Run, test and tasks |
| Access | reads only |
| Reaches | — |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
outputrequired | string | Terminal output including escape sequences (as text; \u001b for ESC). |
rows | integer | Rows (default 24).minimum 0 |
cols | integer | Columns (default 80).minimum 0 |
mouse | array of object | Mouse events to encode after the output, as the terminal would report them to the program
(SPEC-0118).default [] |
mouse[].actionrequired | string | press, release or move. |
mouse[].buttonrequired | string | left, middle, right, wheel_up, wheel_down or none. |
mouse[].rowrequired | integer | Row, 0-based.minimum 0 |
mouse[].colrequired | integer | Column, 0-based.minimum 0 |
mouse[].shift | boolean | Shift held.default false |
mouse[].alt | boolean | Alt held.default false |
mouse[].ctrl | boolean | Control held.default false |
find | string | Text to find in history and screen as the terminal's find field does (SPEC-0206 v2
behaviour 7); the answer lists matches. |
match_case | boolean | Compare letters with their case (default false). |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project terminal_render '{"output":"<string>"}'Input schema as JSON
{ "properties": { "output": { "description": "Terminal output including escape sequences (as text; `\\u001b` for ESC).", "type": "string" }, "rows": { "description": "Rows (default 24).", "type": [ "integer", "null" ], "minimum": 0 }, "cols": { "description": "Columns (default 80).", "type": [ "integer", "null" ], "minimum": 0 }, "mouse": { "description": "Mouse events to encode after the output, as the terminal would report them to the program\n(`SPEC-0118`).", "type": "array", "items": { "$ref": "#/$defs/TerminalMouseArg" }, "default": [] }, "find": { "description": "Text to find in history and screen as the terminal's find field does (`SPEC-0206` v2\nbehaviour 7); the answer lists `matches`.", "type": [ "string", "null" ] }, "match_case": { "description": "Compare letters with their case (default false).", "type": [ "boolean", "null" ], "default": null } }, "$defs": { "TerminalMouseArg": { "description": "One mouse event for `terminal_render`.", "type": "object", "properties": { "action": { "description": "`press`, `release` or `move`.", "type": "string" }, "button": { "description": "`left`, `middle`, `right`, `wheel_up`, `wheel_down` or `none`.", "type": "string" }, "row": { "description": "Row, 0-based.", "type": "integer", "minimum": 0 }, "col": { "description": "Column, 0-based.", "type": "integer", "minimum": 0 }, "shift": { "description": "Shift held.", "type": "boolean", "default": false }, "alt": { "description": "Alt held.", "type": "boolean", "default": false }, "ctrl": { "description": "Control held.", "type": "boolean", "default": false } }, "required": [ "action", "button", "row", "col" ] } }, "required": [ "output" ], "type": "object"}