Video QnA using VLM through VSS Agent
Use this skill when you need details about the video which requires VLM to look at the video frames — for example the agent has no usable prior answer and needs a fresh look at the pixels for a specific clip.
When to Use
- The user asks what happens in the video, what objects / people / actions appear, colors, timing, safety, or other visual facts that require watching the clip.
- The user asks for details that cannot be answered from existing messages, summaries, Elasticsearch/MCP results, or filenames alone—you need model inference on the video.
- Follow-up questions about content details after a coarse summary or after report generation.
Do not use this skill when a database / MCP / prior tool output already answers the question, unless the user explicitly wants verification against the video.
Deployment prerequisite
This skill requires a VSS profile that serves the video_understanding tool — typically base (recommended) or lvs. Before any request:
Probe the VSS agent:
curl -sf --max-time 5 "http://${HOST_IP}:8000/docs" >/dev/null
If the probe fails, ask the user:
"No VSS profile is running on $HOST_IP. Shall I deploy base (recommended for per-clip VLM QnA) using the /vss-deploy-profile skill? If you prefer lvs, say so."
- If yes → hand off to
/vss-deploy-profile -p base (or -p lvs if the user prefers). Return here once it succeeds.
- If no → stop.
If the probe passes, proceed.
Sensor prerequisite
You MUST list VST sensors before any /generate call. This is required even when the user names the sensor explicitly, even when the user asserts the video is already uploaded, and even when a previous turn appeared to use the same video. Do not skip this step.
List sensors:
curl -sf --max-time 5 "http://${HOST_IP}:30888/vst/api/v1/sensor/list" | jq '.[].name'
Compare the returned name values against the user-supplied <sensor-id> (or filename stem, e.g. warehouse_safety_0001).
If a matching sensor is present → proceed to the Agent workflow below.
If no matching sensor is present — upload the video first, then re-list to confirm the new sensor appears:
# filename: must not contain whitespace
# timestamp: ISO 8601 UTC — default 2025-01-01T00:00:00.000Z if user did not specify
curl -s -X PUT "http://${HOST_IP}:30888/vst/api/v1/storage/file/<filename>?timestamp=<timestamp>" \
-H "Content-Type: application/octet-stream" \
-H "Content-Length: <file_size_in_bytes>" \
--upload-file /path/to/<filename> | jq .
See /vss-manage-video-io-storage for full upload semantics (v1 vs v2, conflict handling, delete flow). In interactive runs, confirm with the user before uploading. Never issue an unconditional PUT without first running the sensor-list check above — that is exactly the failure mode this prerequisite exists to prevent.
Agent workflow
The Sensor prerequisite above must have already confirmed (or made) the sensor exist on VST. Then:
- Clip — Identify sensor id, filename, or URL for one video segment. If ambiguous, ask the user.
- Call vss agent with the sensor id and ask for it to call video_understanding tool to answer the user's question.
- Return the vss agent's answer back to the user.
Query VSS agent (/generate)
# Set from deployment (compose / .env / host where vss-agent listens)
export VSS_AGENT_BASE_URL="http://localhost:8000"
curl -s -X POST "${VSS_AGENT_BASE_URL}/generate" \
-H "Content-Type: application/json" \
-d '{"input_message": "Call video_understanding tool to answer the following question about <sensor-id>: <user query>"}' | jq .
Cross-Reference
- vss-manage-video-io-storage — VST storage/replay URLs so
VIDEO_URL is valid for the VLM.
- vss-generate-video-report — timestamped reports via the VSS agent (
/generate); this skill is direct VLM for ad-hoc video Q&A.
1---2name: vss-ask-video3description: Use to ask the VSS agent's video_understanding tool a fresh visual question about a recorded clip. Not for prior tool output, search hits, or metadata-answerable questions.4license: Apache-2.05---67# Video QnA using VLM through VSS Agent89Use this skill when you need details about the video which requires VLM to look at the video frames — for example the agent has **no** usable prior answer and needs a **fresh look at the pixels** for a specific clip.1011---1213## When to Use1415- The user asks **what happens in the video**, what **objects / people / actions** appear, **colors**, **timing**, **safety**, or other **visual facts** that require watching the clip.16- The user asks for **details** that **cannot be answered** from existing messages, summaries, Elasticsearch/MCP results, or filenames alone—you need **model inference on the video**.17- Follow-up questions about **content details** after a coarse summary or after report generation.1819Do **not** use this skill when a **database / MCP / prior tool output** already answers the question, unless the user explicitly wants **verification** against the video.2021---2223## Deployment prerequisite2425This skill requires a VSS profile that serves the `video_understanding` tool — typically **base** (recommended) or **lvs**. Before any request:26271. Probe the VSS agent:28 ```bash29 curl -sf --max-time 5 "http://${HOST_IP}:8000/docs" >/dev/null30 ```31322. **If the probe fails**, ask the user:33 > *"No VSS profile is running on `$HOST_IP`. Shall I deploy `base` (recommended for per-clip VLM QnA) using the `/vss-deploy-profile` skill? If you prefer `lvs`, say so."*3435 - If yes → hand off to `/vss-deploy-profile -p base` (or `-p lvs` if the user prefers). Return here once it succeeds.36 - If no → stop.37383. If the probe passes, proceed.3940---4142## Sensor prerequisite4344**You MUST list VST sensors before any `/generate` call.** This is required even when the user names the sensor explicitly, even when the user asserts the video is already uploaded, and even when a previous turn appeared to use the same video. Do not skip this step.45461. List sensors:47 ```bash48 curl -sf --max-time 5 "http://${HOST_IP}:30888/vst/api/v1/sensor/list" | jq '.[].name'49 ```50512. Compare the returned `name` values against the user-supplied `<sensor-id>` (or **filename stem**, e.g. `warehouse_safety_0001`).52533. **If a matching sensor is present** → proceed to the Agent workflow below.54554. **If no matching sensor is present** — upload the video first, then re-list to confirm the new sensor appears:56 ```bash57 # filename: must not contain whitespace58 # timestamp: ISO 8601 UTC — default 2025-01-01T00:00:00.000Z if user did not specify59 curl -s -X PUT "http://${HOST_IP}:30888/vst/api/v1/storage/file/<filename>?timestamp=<timestamp>" \60 -H "Content-Type: application/octet-stream" \61 -H "Content-Length: <file_size_in_bytes>" \62 --upload-file /path/to/<filename> | jq .63 ```64 See `/vss-manage-video-io-storage` for full upload semantics (v1 vs v2, conflict handling, delete flow). In interactive runs, confirm with the user before uploading. **Never** issue an unconditional PUT without first running the sensor-list check above — that is exactly the failure mode this prerequisite exists to prevent.6566---6768## Agent workflow6970The Sensor prerequisite above must have already confirmed (or made) the sensor exist on VST. Then:71721. **Clip** — Identify **sensor id**, **filename**, or **URL** for one video segment. If ambiguous, ask the user.732. Call vss agent with the sensor id and ask for it to call video_understanding tool to answer the user's question.743. Return the vss agent's answer back to the user.757677## Query VSS agent (`/generate`)7879```bash80# Set from deployment (compose / .env / host where vss-agent listens)81export VSS_AGENT_BASE_URL="http://localhost:8000"8283curl -s -X POST "${VSS_AGENT_BASE_URL}/generate" \84 -H "Content-Type: application/json" \85 -d '{"input_message": "Call video_understanding tool to answer the following question about <sensor-id>: <user query>"}' | jq .86```8788---8990## Cross-Reference9192- **vss-manage-video-io-storage** — VST storage/replay URLs so **`VIDEO_URL`** is valid for the VLM.93- **vss-generate-video-report** — timestamped **reports** via the **VSS agent** (`/generate`); this skill is **direct VLM** for ad-hoc **video Q&A**.9495