Capture Screen
capture_screenCapture a frame from a USB webcam aimed at a Meshtastic device screen and optionally extract visible text with OCR for remote UI inspection.
Instructions
Grab a frame from the USB webcam pointed at the device screen.
Returns {backend, bytes, image_base64, ocr_backend?, ocr_text?}: PNG bytes (base64),
optional OCR text, and backend metadata. Requires the [ui] extras
(opencv-python-headless) and a camera configured via
MESHTASTIC_UI_CAMERA_DEVICE[_<ROLE>]. Falls back to a 1×1 black PNG from the null
backend when no camera is configured. The screen can show mesh-sourced text.
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_screen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | Also run OCR on the frame. | |
| role | No | Which camera, picking `MESHTASTIC_UI_CAMERA_DEVICE_<ROLE>`; omit for the default one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||