grab_frame
Capture a still JPEG frame from an Axis network camera, with configurable resolution, compression, rotation, and channel.
Instructions
Capture one still frame from camera and return it as a JPEG.
If the device refuses the requested resolution, the frame is taken at the closest one it supports instead and the reply says so.
Args:
camera: A name from list_cameras.
resolution: "WIDTHxHEIGHT", e.g. "1280x720", or a device-specific
preset name such as "D1". The camera scales server-side; omit for
the camera's configured default. See camera_capabilities.
compression: 0-100, where 0 is best quality and the largest file.
rotation: 0, 90, 180 or 270 degrees.
channel: Which video input to read on a multi-channel encoder, e.g.
"3" or "quad". Omit on a single-sensor camera.
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": {
"camera": "<camera>"
},
"name": "grab_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| camera | Yes | ||
| channel | No | ||
| rotation | No | ||
| resolution | No | ||
| compression | No |