Screenplay

v0.1.7
io.github.gmpetrov/agent-screenplay Checked 18 hours ago Published 29 days ago

Beautiful screen recordings of any website or desktop app, scripted by your agent.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

screenplay_guide How to make a good screen recording

The guide to writing Screenplay scenarios: the loop, targets, steps, style, voice-over and direction tips. Read it before the first recording.

screenplay_check Check a scenario

Play the scenario quickly without filming. Reports each step; for a missing element, lists the visible targets you can use instead, with a screenshot of where it stopped. It really performs the steps in the app (a click on Send sends, a click on Delete deletes): use a demo account or a staging environment.

ParameterTypeDescription
path *stringPath of the scenario JSON file. Prefer an absolute path; a relative one is resolved from the server's working directory.
scenarioobjectOptional scenario object: validated, then written to `path` (overwriting that file), then used.

screenplay_record Film and edit a scenario

Film the scenario and edit the video. Returns the MP4 path and the storyboard (one image per step): look at it and fix framing, bubbles or data before handing the video over. Takes about the length of the video plus a few seconds per 10 seconds of video. It really performs the steps in the app (a click on Send sends, a click on Delete deletes): use a demo account or a staging environment.

ParameterTypeDescription
path *stringPath of the scenario JSON file. Prefer an absolute path; a relative one is resolved from the server's working directory.
gifbooleanAlso write a GIF.
noVoicebooleanSkip the voice-over even if the scenario enables it.
scenarioobjectOptional scenario object: validated, then written to `path` (overwriting that file), then used.

screenplay_render Edit the last recording again

Re-edit the last recording of this scenario without filming: use it after changing text, narration (say), callouts, style, zoom or output. Changing actions needs screenplay_record. Does not touch the app; writes the video files, and sends new narration text to Cartesia or ElevenLabs when the scenario enables voice-over.

ParameterTypeDescription
path *stringPath of the scenario JSON file. Prefer an absolute path; a relative one is resolved from the server's working directory.
gifbooleanAlso write a GIF.
noVoicebooleanSkip the voice-over even if the scenario enables it.
scenarioobjectOptional scenario object: validated, then written to `path` (overwriting that file), then used.