Save a camera snapshot
services_camera_snapshotSave a still snapshot from a Home Assistant camera entity to a file path, overwriting existing files. Use for dashboard images or Lovelace cards.
Instructions
Save a still snapshot from a camera entity to a file, overwriting any existing file at that path.
Calls camera.snapshot with {"entity_id": entity_id, "filename": filename} over HTTP. filename must be inside the HA config directory
and allow-listed via allowlist_external_dirs, typically under
/config/www/snapshots/... so it can be served by HA.
Use when: capturing a single still frame to a known path, e.g. for a
dashboard image or Lovelace card.
Not for: a video clip — use services_camera_record.
Returns: dict with entity_id, filename and the raw service call
result.
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": {
"entity_id": "<entity_id>",
"filename": "<filename>"
},
"name": "services_camera_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Destination path inside the HA config directory, e.g. '/config/www/snapshots/front.jpg'. Overwrites any existing file there. | |
| entity_id | Yes | Full camera entity ID to capture, e.g. 'camera.front_door'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||