aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tools/video.toml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-17 12:03:30 +0100
committerDanilo M. <danix@danix.xyz>2026-11-17 12:03:30 +0100
commite15acfcf73b108c040f7f5da8d8a2d9a399172f4 (patch)
tree3fe445cd985baa0aef1e075cd3f7224a7aa7b3f7 /examples/tools/video.toml
parent784b5ce41b84e13245555350352973155b97cc3e (diff)
downloaddesktop-assistant-e15acfcf73b108c040f7f5da8d8a2d9a399172f4.tar.gz
desktop-assistant-e15acfcf73b108c040f7f5da8d8a2d9a399172f4.zip
tools: video, transcribe local and online videos
video.sh takes an absolute path or an http(s) URL. Uploader subtitles (it/en) when the URL has them, else whisper large-v3-turbo on the CPU, so the loaded model keeps the GPU. The transcript goes to $ASSISTANT_DIR/<slug>.md and opens; the model gets the path first and the start of the text. Over 30 minutes it asks first. The daemon now kills a running tool's process group on stop: a transcription can run for minutes. A video attachment reaches the model as its path only, for the tool. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'examples/tools/video.toml')
-rw-r--r--examples/tools/video.toml12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/tools/video.toml b/examples/tools/video.toml
new file mode 100644
index 0000000..450669d
--- /dev/null
+++ b/examples/tools/video.toml
@@ -0,0 +1,12 @@
+description = "Transcribe the speech in a video, a local file or a public URL (YouTube, social media, web pages). Writes the full transcript to a Markdown file and opens it. Returns the file's path and the start of the text only: you have NOT read the whole transcript, so to summarize or answer questions about it, ask the user to attach the file. Videos over 30 minutes are refused until the user agrees: tell them the length and that it takes a few minutes, then call again with long=1."
+command = ["video.sh", "{source}", "{long}"]
+cloud = ["hetzner"]
+timeout = 1800
+
+[params.source]
+type = "string"
+description = "Absolute path of a local video, from its video block or the user's words, or an http(s) URL."
+
+[params.long]
+type = "string"
+description = "1 only after the user agreed to transcribe a video over 30 minutes; empty otherwise."