Module tools

Source
Expand description

The MCP tool catalogue — the single source of truth for tool names/arguments. mcp/mod.rs serves it (tools/list with JSON schemas built from ARGS); ui/app.rs executes calls by name with exactly these arguments (unknown tool → error “unknown tool”). Keep both in sync with this table.

Conventions: ids are the model’s u64 ids; times are seconds; “property” names are the inspector labels (“Position X”, “Position Y”, “Scale”, “Rotation”, “Opacity”, “Volume”, “Pan”) or “: ”; every mutating tool pushes one undo step and returns {"ok":true, ...}; read tools return JSON.

Constants§

TOOLS
(name, description, argument docs “name:type:required:description” …)

Functions§

effect_kinds 🔒
Every effect kind the clip.add_effect handler accepts — listed from the model, because a hand-written list in the catalogue goes stale the moment an effect is added.
input_schema
JSON schema for one tool’s arguments (“name:type:required:description” docs).
list_json
The tools/list payload: [{name, description, inputSchema}].