Capture Display
capture_displayCapture the device's own screen framebuffer to a PNG for visual inspection and debugging, with optional wake to recover timed-out panels.
Instructions
Capture the device's own screen from its framebuffer and write a PNG.
Exact pixels for BaseUI and MUI, color included. Needs firmware with screen-mirror
support; older firmware ignores the request and this times out. blank: true almost
always means the panel had timed out (screen_on_secs is reported): capture again with
wake. Screens can show mesh-sourced text. See docs/display-mirror.md.
Returns {path, bytes, width, height, panel_width, panel_height, scale, format, blank, colorized, screen_on_secs, panel_class, frames, rects}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "capture_display"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Serial port or `tcp://host[:port]`; omit to auto-select the one likely Meshtastic device. | |
| wake | No | An input event such as `"BACK"`, pressed on this connection just before the frame. The wake is a real key press, so pick one harmless on that screen. | |
| scale | No | Enlarges a small panel, 1-8. | |
| out_path | No | The file to write, a `.png` inside `MESHTASTIC_MCP_CAPTURE_DIR` (default: the server's working directory); without it each capture overwrites one scratch file per port. | |
| timeout_s | No | Seconds to wait for a frame, at most 45. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| blank | Yes | a single color; almost always the panel had timed out | |
| bytes | Yes | PNG size | |
| rects | Yes | ||
| scale | Yes | ||
| width | Yes | PNG width, after `scale` | |
| format | Yes | ||
| frames | Yes | ||
| height | Yes | PNG height, after `scale` | |
| colorized | Yes | ||
| panel_class | Yes | from the handshake, e.g. `EINK` | |
| panel_width | Yes | ||
| panel_height | Yes | ||
| screen_on_secs | Yes | the panel's blank timeout |