Startrecording
startRecordingStarts recording the agent's display before browser or computer-use actions, so the session can be captured to an MP4 file and shared later via a replay link.
Instructions
Start recording the agent computer display before browser or computer-use actions.
Call this before the first browser or computer action. The display is selected from this agent process tree. A display belonging to another session is not used.
fps defaults to 5. maxDurationSeconds defaults to 7200. When the limit is reached the capture stops and the file is kept so finishRecording can still share it.
title, when supplied, names the MP4 using the agent's local start time: YYYY-MM-DD_HHMM_title.mp4 (e.g. 2026-11-04_1408_github-login.mp4). Unsafe filename characters are converted to hyphens. A duplicate filename gets a -2, -3, etc. suffix, never overwriting an earlier recording. If title is omitted, the legacy unique recording ID filename is used.
outputDir writes the recording file directly into that directory. Omit it to use the default recordings directory. The directory must already exist and be writable. When the replay will be uploaded with a connected Google Drive tool, pass a directory that tool can read, such as /workspace.
If a recording is already active, or is waiting to be shared, that recording is returned and a second recorder is not started. title and outputDir are ignored in that case.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | ||
| title | No | ||
| outputDir | No | ||
| maxDurationSeconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||