MCP: Script (#191) #204
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
needs-info
needs-triage
question
ready-for-agent
ready-for-human
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crowmaki/ai-studio!204
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-191-mcp-script"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #191 (part of #157).
What changed
import_scriptimports an OSF file from an absolute path and returns the import summary. A relative path is refused.read_scriptreturns the Scenes with their Lines: ids, kinds, text, Characters, cue extensions, and the SUBTITLE language and text.sceneId. WithproductionOnly, it leaves out omitted Scenes. An unknown Scene is refused.durationMsandtiming(estimate,manual,takeorperformance), as the Scene's Animatic plays it. This makes the duration and reading-rate setters visible in the read.set_scene_lightingandset_scene_ambiencereturn the Scene.set_subtitleandset_line_durationreturn the Line.set_reading_ratesreturns the Project. Each one calls the existingApiImplcommand, so it records undo and emits change events.get_projectnow also returns the Lighting list and the reading rates, so a harness can find Lighting ids.Tests
cargo test --workspacepasses.src-tauri/tests/mcp_script.rscovers:Notes
set_subtitlesets the language and the text together, as the UI command does, so a field left out is cleared. The tool description says so.read_scriptbuilds the Animatic for each Scene it returns, so a full-script read costs one Animatic per Scene.