glass_record
Records named workflows or buffers recent GUI session history for later export of marked evidence clips; requires a configured record directory.
Instructions
Record named workflows or explicitly buffer recent history; requires server --record-dir. Scoped start(name,max_duration_ms) acknowledges video; stop(outcome,keep) finalizes. Failures/cancellations keep by default; successes need keep:true. Buffer_start(history_ms) keeps 1–30s encoded history in memory (default 10s); check status.buffer_supported. Mark(name,outcome,keep,tail_ms) selects history plus a 0–5s tail (default 2s); overlapping marks merge into one pending clip. Save waits for the tail, exports the mark, and keeps buffering. Buffer_stop saves marked evidence by default; keep:false discards it. Unmarked history is always discarded. Scoped capture and buffering are exclusive. Clips are bounded to 60s/8MiB. Status reports scope, actual history and pending disposition. Read kept untrusted video through artifact URI resources/read. Never repeat UI input because recording failed.
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": {
"op": "<op>"
},
"name": "glass_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| keep | No | ||
| name | No | ||
| outcome | No | ||
| tail_ms | No | ||
| history_ms | No | ||
| max_duration_ms | No |