bmahs_screenshot
Capture a single JPEG frame from a BMAHS device's current UI, returning the image and its saved path.
Instructions
(实验)对声明了 ui 能力的 BMAHS 设备抓取一帧当前画面:自动 ui.start → 二进制流取一帧 JPEG → ui.stop,返回图片与保存路径。
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": {
"device": "<device>"
},
"name": "bmahs_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | 设备 id 或显示名 | |
| max_width | No | 期望画面最大宽度(像素),设备按自身能力缩放 |