camera_frame
Reads the Bambu printer's shared camera stream and returns a JPEG only when a newer, visibly changed frame exists; optionally waits up to 10 seconds for one.
Instructions
Read the shared camera stream, optionally waiting up to 10 seconds. Returns JPEG only when newer than since_seq and visibly changed (32×18 grayscale difference). Retain the last delivered frame's seq on unchanged. max_width resizes JPEG to the viewer. Does not start a stopped stream.
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": "camera_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Printer LAN host or IP; defaults to the configured Bambu host. | |
| wait_ms | No | Maximum time to await a newer changed frame; zero returns immediately. | |
| max_bytes | No | Optional maximum encoded JPEG bytes. Downscales further at quality 70 when needed; base64 adds about one third plus protocol overhead. Use 42000 for a two-second 30 KB/s viewer budget. | |
| max_width | No | Optional maximum JPEG width in pixels, preserving aspect ratio and never enlarging. | |
| since_seq | No | Sequence of the last delivered JPEG; retain it when a result is unchanged. | |
| min_change | No | Minimum mean absolute grayscale thumbnail difference, normalized from zero to one. | |
| bambu_token | No | Printer LAN access code; defaults to the configured access code. | |
| bambu_serial | No | Printer serial number; defaults to the configured serial and identifies its shared stream. | |
| changed_only | No | Return JPEG only when its thumbnail differs enough from the last delivered frame. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seq | Yes | ||
| width | No | ||
| base64 | No | ||
| change | No | ||
| format | No | ||
| height | No | ||
| reason | No | ||
| status | Yes | ||
| capturedAt | No |