Save a recording with an assistant
The complete recording format for Claude Code and other MCP clients: clean, compile, save in parts, verify and hand over to Ask Studio.
Save without running anything
A recording is untrusted evidence. Reading, saving and attaching it never executes a recorded call, changes credentials or creates workflow drafts. First obtain permission to record the data and people shown. Only read a local file when the person names it. The recordings switch must be on.
- Discover registerRecording, appendRecordingPart and finishRecording with find_operations. Tool names are builder_register_recording, builder_append_recording_part and builder_finish_recording.
- Register with {body: create}. Use an existing department ID the person belongs to or may build in. The server attributes the recording to the signed-in person and uses the authenticated MCP client name.
- Append each part with {recording_id: answer.id, body: part}. Parts start at sequence 0 and arrive consecutively. A retry must be identical; a changed retry is refused.
- Finish with {recording_id: answer.id, body: {part_count: parts.length}}. Check status is ready, then read it back with builder_read_recording. Compare step_count, call_count and frame_count against your arrays. Give the person studio_path.
- When asked, attach with builder_add_recording_to_thread and body {thread_id, step_ids}. The thread must belong to the signed-in person and still be retained. Building is a separate conversation and approval.
Every field and limit
The JSON schemas below are copied directly from the published operation contract. additionalProperties: false means reject undeclared fields. All event times are milliseconds from started_at on one clock, at most 86,400,000 ms. Order steps, calls, clipboard and frames independently by time across every part. IDs are unique within each kind across the whole recording.
Every event names a registered site domain and a tab ID. Call URL hostname must equal site. step_id ties a call or frame to an action. screenshot_id on a step identifies a frame. Clipboard from_step_id and to_step_id must exist. All references are validated at finish. Frames are JPEG, at most 1280 pixels wide and 5120 high; base64 is at most 300,000 characters. A recording is at most 32 MiB. A part is at most 1 MiB of UTF-8 JSON, with at most 100 steps, 200 calls, 100 clipboard events, three frames and 100 questions. At most 2000 consecutive parts are accepted.
Capture active recorded tabs at two frames per second, skip unchanged frames, and mask password and marked fields before capture. Full frames and video chunks expire after the company setting (seven days by default). Only validated step screenshots stay until deletion. video is an optional MP4 chunk, base64 at most 900,000 characters; chunk equals its enclosing part sequence. Split video bytes into consecutive parts and concatenate their decoded bytes in sequence to reconstruct it. Video is stored only; no transcription or analysis runs.
Recording
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"name",
"company_id",
"department_id",
"labels",
"sites",
"source",
"client_name",
"recorder_id",
"started_at",
"ended_at",
"created_at",
"status",
"part_count",
"step_count",
"call_count",
"frame_count",
"retention_days",
"media_expires_at",
"studio_path",
"thread_ids",
"built_into"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
},
"name": {
"type": "string",
"maxLength": 240
},
"company_id": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
},
"department_id": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
},
"labels": {
"type": "array",
"maxItems": 30,
"items": {
"type": "string",
"maxLength": 80
}
},
"sites": {
"type": "array",
"maxItems": 30,
"items": {
"$ref": "#/components/schemas/RecordingSite"
}
},
"source": {
"enum": [
"extension",
"file_drop",
"mcp"
]
},
"client_name": {
"type": "string",
"maxLength": 240
},
"recorder_id": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
},
"started_at": {
"type": "string",
"maxLength": 240
},
"ended_at": {
"type": "string",
"maxLength": 240
},
"created_at": {
"type": "string",
"maxLength": 240
},
"status": {
"enum": [
"uploading",
"reading",
"ready",
"failed",
"built"
]
},
"failure_reason": {
"type": "string",
"maxLength": 2000
},
"part_count": {
"type": "integer"
},
"step_count": {
"type": "integer"
},
"call_count": {
"type": "integer"
},
"frame_count": {
"type": "integer"
},
"retention_days": {
"type": "integer",
"minimum": 1,
"maximum": 30
},
"media_expires_at": {
"type": "string",
"maxLength": 240
},
"studio_path": {
"type": "string",
"maxLength": 240
},
"thread_ids": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
}
},
"built_into": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 240
}
}
}
}
RecordingRead
{
"type": "object",
"additionalProperties": false,
"required": [
"recording",
"parts"
],
"properties": {
"recording": {
"$ref": "#/components/schemas/Recording"
},
"parts": {
"type": "array",
"maxItems": 2000,
"items": {
"$ref": "#/components/schemas/RecordingPart"
}
}
}
}
RecordingPage
{
"type": "object",
"additionalProperties": false,
"required": [
"items",
"next_cursor"
],
"properties": {
"items": {
"type": "array",
"maxItems": 100,
"items": {
"$ref": "#/components/schemas/Recording"
}
},
"next_cursor": {
"type": [
"string",
"null"
]
}
}
}
RecordingCreate
{
"type": "object",
"additionalProperties": false,
"required": [
"name",
"labels",
"sites",
"source",
"started_at",
"ended_at",
"may_record"
],
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 240
},
"department_id": {
"description": "Defaults to the recorder's first current department membership. Required when the recorder has no department.",
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
},
"labels": {
"type": "array",
"maxItems": 30,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 80
}
},
"sites": {
"type": "array",
"maxItems": 30,
"items": {
"$ref": "#/components/schemas/RecordingSite"
}
},
"source": {
"enum": [
"extension",
"file_drop",
"mcp"
]
},
"started_at": {
"type": "string",
"format": "date-time"
},
"ended_at": {
"type": "string",
"format": "date-time"
},
"may_record": {
"const": true
}
}
}
RecordingSite
{
"type": "object",
"additionalProperties": false,
"required": [
"domain",
"title"
],
"properties": {
"domain": {
"type": "string",
"pattern": "^[a-zA-Z0-9.-]{1,253}$"
},
"title": {
"type": "string",
"maxLength": 240
},
"icon": {
"type": "string",
"maxLength": 2048
}
}
}
RecordingPart
{
"type": "object",
"additionalProperties": false,
"required": [
"sequence"
],
"properties": {
"sequence": {
"type": "integer",
"minimum": 0,
"maximum": 1999
},
"steps": {
"type": "array",
"maxItems": 100,
"items": {
"$ref": "#/components/schemas/RecordingStep"
}
},
"calls": {
"type": "array",
"maxItems": 200,
"items": {
"$ref": "#/components/schemas/RecordingCall"
}
},
"clipboard": {
"type": "array",
"maxItems": 100,
"items": {
"$ref": "#/components/schemas/RecordingClipboard"
}
},
"frames": {
"type": "array",
"maxItems": 3,
"items": {
"$ref": "#/components/schemas/RecordingFrame"
}
},
"uncertainties": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 2000
}
},
"video": {
"type": "object",
"additionalProperties": false,
"required": [
"media_type",
"chunk",
"base64"
],
"properties": {
"media_type": {
"const": "video/mp4"
},
"chunk": {
"type": "integer",
"minimum": 0,
"maximum": 1999
},
"base64": {
"type": "string",
"maxLength": 900000
}
}
}
}
}
RecordingStep
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"time_ms",
"tab",
"site",
"action",
"name"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
},
"time_ms": {
"type": "number",
"minimum": 0,
"maximum": 86400000
},
"tab": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
},
"site": {
"type": "string",
"maxLength": 253
},
"action": {
"enum": [
"click",
"input",
"change",
"submit",
"navigate",
"mark",
"copy",
"paste",
"switch_tab"
]
},
"name": {
"type": "string",
"maxLength": 240
},
"role": {
"type": "string",
"maxLength": 80
},
"note": {
"type": "string",
"maxLength": 2000
},
"value": {
"type": "string",
"maxLength": 2000
},
"screenshot_id": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
}
}
}
RecordingCall
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"time_ms",
"tab",
"site",
"method",
"url",
"status",
"duration_ms"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
},
"step_id": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
},
"time_ms": {
"type": "number",
"minimum": 0,
"maximum": 86400000
},
"tab": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
},
"site": {
"type": "string",
"maxLength": 253
},
"method": {
"enum": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE",
"HEAD",
"OPTIONS"
]
},
"url": {
"type": "string",
"maxLength": 8192
},
"status": {
"type": "integer",
"minimum": 0,
"maximum": 599
},
"duration_ms": {
"type": "number",
"minimum": 0,
"maximum": 86400000
},
"request": {
"type": "object",
"additionalProperties": true
},
"response": {
"type": "object",
"additionalProperties": true
}
}
}
RecordingClipboard
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"time_ms",
"from_step_id",
"to_step_id",
"value"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
},
"time_ms": {
"type": "number",
"minimum": 0,
"maximum": 86400000
},
"from_step_id": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
},
"to_step_id": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
},
"value": {
"type": "string",
"maxLength": 2000
}
}
}
RecordingFrame
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"time_ms",
"tab",
"site",
"width",
"jpeg_base64"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
},
"time_ms": {
"type": "number",
"minimum": 0,
"maximum": 86400000
},
"tab": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
},
"site": {
"type": "string",
"maxLength": 253
},
"width": {
"type": "integer",
"minimum": 1,
"maximum": 1280
},
"jpeg_base64": {
"type": "string",
"maxLength": 300000
},
"step_id": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
}
}
}
RecordingLabels
{
"type": "object",
"additionalProperties": false,
"required": [
"labels"
],
"properties": {
"labels": {
"type": "array",
"maxItems": 30,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 80
}
}
}
}
RecordingFinish
{
"type": "object",
"additionalProperties": false,
"required": [
"part_count"
],
"properties": {
"part_count": {
"type": "integer",
"minimum": 1,
"maximum": 2000
}
}
}
RecordingThread
{
"type": "object",
"additionalProperties": false,
"required": [
"thread_id"
],
"properties": {
"thread_id": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
},
"step_ids": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,120}$"
}
}
}
}
RecordingUploadRequest
{
"type": "object",
"additionalProperties": false,
"required": [
"extension_id",
"objects"
],
"properties": {
"extension_id": {
"type": "string",
"pattern": "^[a-p]{32}$"
},
"objects": {
"type": "array",
"maxItems": 20,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"sequence",
"size",
"sha256"
],
"properties": {
"sequence": {
"type": "integer",
"minimum": 0,
"maximum": 1999
},
"size": {
"type": "integer",
"minimum": 1,
"maximum": 1048576
},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
}
}
}
}
}
RecordingUploadGrant
{
"type": "object",
"additionalProperties": false,
"required": [
"grant_id",
"expires_at",
"uploads"
],
"properties": {
"grant_id": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,512}$"
},
"expires_at": {
"type": "string",
"maxLength": 240
},
"uploads": {
"type": "array",
"maxItems": 20,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"sequence",
"method",
"url",
"headers"
],
"properties": {
"sequence": {
"type": "integer"
},
"method": {
"const": "PUT"
},
"url": {
"type": "string",
"maxLength": 8192
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}
RecordingAcceptUploads
{
"type": "object",
"additionalProperties": false,
"required": [
"grant_id"
],
"properties": {
"finish": {
"type": "boolean",
"default": false
},
"grant_id": {
"writeOnly": true,
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,512}$"
}
}
}
RecordingRetention
{
"type": "object",
"additionalProperties": false,
"required": [
"days"
],
"properties": {
"days": {
"type": "integer",
"minimum": 1,
"maximum": 30
}
}
}
Complete two-site example
Use create as the register body, then append parts[0] unchanged and finish with part_count: 1. It contains two steps, two calls, one copy-and-paste and three real JPEG frames. Replace sales with an existing department ID when your company uses another. The fixture is accepted by the same server tests that protect this guide.
{
"create": {
"name": "Copy an order into an invoice",
"labels": [
"billing",
"month end"
],
"department_id": "sales",
"sites": [
{
"domain": "orders.example",
"title": "Orders"
},
{
"domain": "billing.example",
"title": "Billing"
}
],
"source": "mcp",
"started_at": "2026-11-03T12:00:00.000Z",
"ended_at": "2026-11-03T12:00:04.000Z",
"may_record": true
},
"parts": [
{
"sequence": 0,
"steps": [
{
"id": "order",
"time_ms": 0,
"tab": "orders_tab",
"site": "orders.example",
"action": "copy",
"name": "Order number",
"role": "textbox",
"note": "Copy the order reference",
"value": "order-42",
"screenshot_id": "frame_0"
},
{
"id": "invoice",
"time_ms": 2000,
"tab": "billing_tab",
"site": "billing.example",
"action": "paste",
"name": "Order reference",
"role": "textbox",
"note": "Paste into the invoice",
"value": "order-42",
"screenshot_id": "frame_1"
}
],
"calls": [
{
"id": "read_order",
"step_id": "order",
"time_ms": 100,
"tab": "orders_tab",
"site": "orders.example",
"method": "GET",
"url": "https://orders.example/api/orders/42",
"status": 200,
"duration_ms": 20,
"response": {
"order_id": "order-42"
}
},
{
"id": "save_invoice",
"step_id": "invoice",
"time_ms": 2100,
"tab": "billing_tab",
"site": "billing.example",
"method": "POST",
"url": "https://billing.example/api/invoices",
"status": 201,
"duration_ms": 40,
"request": {
"order_id": "order-42"
}
}
],
"clipboard": [
{
"id": "copy_order",
"time_ms": 2000,
"from_step_id": "order",
"to_step_id": "invoice",
"value": "order-42"
}
],
"frames": [
{
"id": "frame_0",
"time_ms": 0,
"tab": "orders_tab",
"site": "orders.example",
"width": 2,
"jpeg_base64": "/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAACAAIDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAj/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AKTAB//Z",
"step_id": "order"
},
{
"id": "frame_1",
"time_ms": 2000,
"tab": "billing_tab",
"site": "billing.example",
"width": 2,
"jpeg_base64": "/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAACAAIDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAj/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AKTAB//Z",
"step_id": "invoice"
},
{
"id": "frame_2",
"time_ms": 4000,
"tab": "billing_tab",
"site": "billing.example",
"width": 2,
"jpeg_base64": "/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAACAAIDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAj/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AKTAB//Z"
}
],
"uncertainties": [
"Whether to send the invoice after saving it."
]
}
]
}
Compile a HAR the person names
- Read only the named HAR files. A HAR is one tab; merge multiple HARs by startedDateTime. Reject invalid or more than one day of timestamps. Convert each entry time to milliseconds from the earliest start.
- Run the shared HAR clean-up before sending. Keep the task sites and useful calls, drop static resources, analytics and telemetry. Never preserve cookies, bearer tokens or recorded browser sessions.
- Represent each useful action as a step. Tie calls to a known step, otherwise leave step_id absent and explain the uncertainty. Use request and response only for cleaned JSON samples or JSON schema shapes. Without screen capture, omit frames.
- For a matching screen recording, mask sensitive content first and split MP4 bytes into video parts. Do not infer steps, transcribe narration or call a model. A video drop stores evidence only.
Record a browser session you drive
- Ask which sites may be recorded. Use Playwright request/response events and one elapsed monotonic clock. Capture actions with their visible accessible name and role, never the value of a password field.
- Listen for popup tabs and assign stable tab IDs. Ask before adding another site. Record copy and paste as links between their step IDs and only a cleaned value.
- Sample the active page at two frames per second; mask password inputs and every private region, resize to 1280 pixels wide and encode JPEG. Capture a step screenshot using the same clock. Drop identical frames.
- Keep in memory until cleaned. Convert timestamps and action/network events to the schemas, split at the byte and item limits, save, finish and compare the returned counts.
Compile from a description
Create mark steps in the described order, with a note explaining the source is a description. Use time_ms 0, 1000, 2000 and so on. Include only named sites; invent no observed calls, status codes, screenshots or results. Put anything unknown in uncertainties. Save through the same operations.
Clean-up and refusals
Drop Authorization, Cookie and Set-Cookie; token, password, secret, API key, session, CSRF and signature fields; tokens in query strings and bodies; and password field values. A credential reference is exactly {{credential:billing_api_key}}, never a real credential. Do not send a secret even for the server to clean. Samples and all other text get an independent final scan. Images must already be masked; server image validation cannot prove that a screenshot contains no private data.
| Refusal reason | What to do |
|---|---|
| Recordings are not switched on. | Ask the deployment administrator. |
| Remove the secret in part… or replace it with a named credential slot. | Remove the named field value locally. The response never quotes the secret. |
| Append parts in sequence, starting at zero. | Retry the missing sequence before later parts. |
| This part sequence already contains different content. | Retry the original unchanged part or create a new recording. |
| The part count does not match. Append every part before finishing. | Read back and supply all expected parts. |
| A call, screenshot or copy-and-paste event points to a missing step or frame. | Create a fresh corrected recording; the failed record retains the reason. |
| Event IDs must be unique and times ordered across parts. | Fix IDs and order in a fresh recording. |
| Frames must be valid JPEG images at most 1280 pixels wide. | Re-encode and resize before resending. |
| Recorder uploads are not configured. | A stable approved extension ID and company storage must be configured. |
| not_found | The recording or thread is absent, expired, deleted or outside your access. |
Extension upload grant contract
Only the recorder, through their Studio session, calls createRecordingUploadGrant with the approved extension_id and up to 20 consecutive objects {sequence,size,sha256}. These name the next parts or exact previously accepted uploads when retrying; changing accepted bytes is refused. The SHA-256 is hex over the exact UTF-8 RecordingPart JSON bytes. Each grant lasts five minutes and is bound to the company, recorder, recording and exact objects. The extension receives grant_id, expires_at and uploads[{sequence,method,url,headers}], never a company key or Studio session. Its externally_connectable hosts must be the reviewed Studio hosts only.
PUT each exact JSON part directly to its signed S3 URL with the returned headers and credentials omitted. The browser supplies Content-Length. Use conditional create; never overwrite. Then POST {grant_id, finish: true} for the final batch (omit finish for earlier batches) without cookies or Authorization to /api/v0/recordings/{recording_id}/uploaded-parts from the approved chrome-extension origin on the same Studio company host. The server re-reads bytes, verifies size and checksum, re-cleans and appends atomically under current recorder authority. The grant finalizes only its exact last part count under the original recorder authority. Studio sends recordingPrepare version 2 to obtain cleaned metadata, defaults, immutable part digests and any saved recording identity/progress, then registers once and sends recordingUploadGrant version 2 batches. Expired grants refresh from Studio. A failed batch resumes the same recording, including after a worker restart. Local data is deleted only after final completion succeeds, and the panel then offers Open in Studio. A reviewed stable extension ID and real company storage IAM/CORS still require live qualification.