Skip to main content
Glama

HTML/CSS to Image API

Create an HTML/CSS Recording

create_htmlcss_recording
Destructive

Creates a video or animated GIF from HTML, CSS, and JavaScript. MP4 and WebM can include a soundtrack from an audio asset ID or public audio URL. Returns id, status_url, and recording_url in item before capture completes. Use get_recording_status to check readiness.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "content": "<content>"
    },
    "name": "create_htmlcss_recording"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesHTML, optional CSS, recording duration, and optional actions and output settings.

Output Schema

NameRequiredDescriptionDefault
itemNoOperation result. Check success before using this value.
errorNoError details when the operation failed; null on success.
successNoWhether the operation succeeded. If false, inspect error before retrying.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / content / properties / audio
      Added value: +{
      +  "description": "Attach a soundtrack to MP4 or WebM after capture. Supply exactly one source: an asset_id from your organization's library or a public HTTP(S) url. Playback follows the finished video timeline at normal speed.",
      +  "oneOf": [
      +    {
      +      "properties": {
      +        "asset_id": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "asset_id"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "properties": {
      +        "url": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "url"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "properties": {
      +    "asset_id": {
      +      "description": "ID of an audio file in your organization's asset library. Supply this or url.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "delay_ms": {
      +      "description": "Wait this many milliseconds from the start of the finished video before playing audio. For at_most (the default), fixed, and target, the delay must be shorter than duration_ms.",
      +      "type": "integer"
      +    },
      +    "error_on_source_invalid": {
      +      "description": "Applies only at render time. Invalid requests still fail at creation, even when this is false. If the audio is unavailable, cannot be decoded, or the requested timing leaves no audio to play, the render fails by default (true). Set false to return the full video without audio.",
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "source_start_ms": {
      +      "description": "Start reading this many milliseconds into the source. Defaults to 0.",
      +      "type": "integer"
      +    },
      +    "url": {
      +      "description": "Public HTTP or HTTPS URL of the audio file. Supply this or asset_id.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "when_audio_ends": {
      +      "description": "When the track ends, keep the video playing silently (default), loop from source_start_ms, or trim the video.",
      +      "enum": [
      +        "silence",
      +        "loop",
      +        "trim_video"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • changedInput schema / properties / content / properties / output / description
      Previous value: -"Output format, frame rate, and scaling. Defaults to MP4 at 30 fps with no output scaling. GIF defaults to 15 fps. Recordings do not include audio."New value: +"Output format, frame rate, and scaling. Defaults to MP4 at 30 fps with no output scaling. GIF defaults to 15 fps. MP4 and WebM support an optional audio track."
    • changedInput schema / properties / content / properties / output / properties / format / description
      Previous value: -"Output format: mp4, webm, or gif. Defaults to mp4. Recordings do not include audio."New value: +"Output format: mp4, webm, or gif. Defaults to mp4. MP4 and WebM support an optional audio track."
  2. Changed1 schema field changed
    • changedInput schema / properties / content / properties / actions / items / anyOf
      Previous value: -[
      -  {
      -    "description": "Scroll through an ordered sequence of timed movements in the document or a selected container.",
      -    "properties": {
      -      "container_selector": {
      -        "description": "CSS selector for a scrollable container. Omitted or null scrolls the document.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "if_not_found": {
      -        "description": "Actions to run if the selected container is missing. Omitted, null, or empty skips this scroll action; it never falls back to the document. Use an error action to fail instead.",
      -        "items": {
      -          "$ref": "#/properties/content/properties/actions/items",
      -          "description": "One action in the recording timeline, selected by its type discriminator. Actions run in order; nested branches contain ordinary actions and do not inherit selectors."
      -        },
      -        "type": [
      -          "array",
      -          "null"
      -        ]
      -      },
      -      "steps": {
      -        "description": "Ordered scroll movements. At least one step is required.",
      -        "items": {
      -          "description": "One timed scroll movement within a scroll action. Steps run in order.",
      -          "properties": {
      -            "duration_ms": {
      -              "description": "Duration of the movement in milliseconds. Must be at least 1. The recording deadline can cut the movement short.",
      -              "maximum": 2147483647,
      -              "minimum": 1,
      -              "type": "integer"
      -            },
      -            "easing": {
      -              "description": "Easing curve for the scroll movement. Defaults to linear (constant speed).",
      -              "enum": [
      -                "linear",
      -                "ease_in_cubic",
      -                "ease_out_cubic",
      -                "ease_in_out_cubic",
      -                "ease_in_quad",
      -                "ease_out_quad",
      -                "ease_in_out_quad",
      -                "ease_in_quart",
      -                "ease_out_quart",
      -                "ease_in_out_quart",
      -                "ease_in_quint",
      -                "ease_out_quint",
      -                "ease_in_out_quint",
      -                "ease_in_sine",
      -                "ease_out_sine",
      -                "ease_in_out_sine",
      -                "ease_in_expo",
      -                "ease_out_expo",
      -                "ease_in_out_expo",
      -                "ease_in_circ",
      -                "ease_out_circ",
      -                "ease_in_out_circ",
      -                "ease_in_back",
      -                "ease_out_back",
      -                "ease_in_out_back",
      -                "ease_in_elastic",
      -                "ease_out_elastic",
      -                "ease_in_out_elastic",
      -                "ease_in_bounce",
      -                "ease_out_bounce",
      -                "ease_in_out_bounce"
      -              ],
      -              "type": "string"
      -            },
      -            "to": {
      -              "anyOf": [
      -                {
      -                  "description": "Scroll to an edge of the document or selected container.",
      -                  "properties": {
      -                    "position": {
      -                      "description": "Edge to scroll to: top (default), bottom, left, or right.",
      -                      "enum": [
      -                        "top",
      -                        "bottom",
      -                        "left",
      -                        "right"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    "type": {
      -                      "const": "position"
      -                    }
      -                  }
      -                },
      -                {
      -                  "description": "Scroll to absolute coordinates within the document or selected container.",
      -                  "properties": {
      -                    "type": {
      -                      "const": "coordinates"
      -                    },
      -                    "x": {
      -                      "description": "Absolute horizontal scroll position in CSS pixels. Defaults to 0.",
      -                      "maximum": 1.7976931348623157e+308,
      -                      "minimum": -1.7976931348623157e+308,
      -                      "type": "number"
      -                    },
      -                    "y": {
      -                      "description": "Absolute vertical scroll position in CSS pixels. Defaults to 0.",
      -                      "maximum": 1.7976931348623157e+308,
      -                      "minimum": -1.7976931348623157e+308,
      -                      "type": "number"
      -                    }
      -                  }
      -                },
      -                {
      -                  "description": "Scroll to an element matching a CSS selector, with optional offsets.",
      -                  "properties": {
      -                    "if_not_found": {
      -                      "description": "Actions to run when the destination is missing. Omitted, null, or empty skips this movement. If the branch completes, continue with the next step. Use an error action to fail instead.",
      -                      "items": {
      -                        "$ref": "#/properties/content/properties/actions/items",
      -                        "description": "One action in the recording timeline, selected by its type discriminator. Actions run in order; nested branches contain ordinary actions and do not inherit selectors."
      -                      },
      -                      "type": [
      -                        "array",
      -                        "null"
      -                      ]
      -                    },
      -                    "offset_x": {
      -                      "description": "Horizontal offset in CSS pixels added to the destination element's position. Defaults to 0.",
      -                      "maximum": 1.7976931348623157e+308,
      -                      "minimum": -1.7976931348623157e+308,
      -                      "type": "number"
      -                    },
      -                    "offset_y": {
      -                      "description": "Vertical offset in CSS pixels added to the destination element's position. Defaults to 0.",
      -                      "maximum": 1.7976931348623157e+308,
      -                      "minimum": -1.7976931348623157e+308,
      -                      "type": "number"
      -                    },
      -                    "selector": {
      -                      "description": "CSS selector for the destination element.",
      -                      "type": "string"
      -                    },
      -                    "type": {
      -                      "const": "selector"
      -                    }
      -                  },
      -                  "required": [
      -                    "selector"
      -                  ]
      -                }
      -              ],
      -              "description": "Destination for this movement. Select position, coordinates, or selector using its type discriminator.",
      -              "required": [
      -                "type"
      -              ],
      -              "type": "object"
      -            }
      -          },
      -          "required": [
      -            "to"
      -          ],
      -          "type": "object"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "type": {
      -        "const": "scroll"
      -      }
      -    },
      -    "required": [
      -      "steps"
      -    ]
      -  },
      -  {
      -    "description": "Wait while recording and page activity continue.",
      -    "properties": {
      -      "duration_ms": {
      -        "description": "Wait duration in milliseconds. Must be nonnegative. The recording deadline can end the wait early.",
      -        "maximum": 2147483647,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "type": {
      -        "const": "stall"
      -      }
      -    }
      -  },
      -  {
      -    "description": "Look for a matching element and execute the corresponding branch. Branch actions supply their own selectors.",
      -    "properties": {
      -      "if_found": {
      -        "description": "Actions to run when the element is found. Omitted, null, or empty continues. Actions do not inherit the lookup's selector.",
      -        "items": {
      -          "$ref": "#/properties/content/properties/actions/items",
      -          "description": "One action in the recording timeline, selected by its type discriminator. Actions run in order; nested branches contain ordinary actions and do not inherit selectors."
      -        },
      -        "type": [
      -          "array",
      -          "null"
      -        ]
      -      },
      -      "if_not_found": {
      -        "description": "Actions to run when the element is not found before timeout. Omitted, null, or empty continues. Use an error action to fail instead.",
      -        "items": {
      -          "$ref": "#/properties/content/properties/actions/items",
      -          "description": "One action in the recording timeline, selected by its type discriminator. Actions run in order; nested branches contain ordinary actions and do not inherit selectors."
      -        },
      -        "type": [
      -          "array",
      -          "null"
      -        ]
      -      },
      -      "selector": {
      -        "description": "CSS selector of the element to find.",
      -        "type": "string"
      -      },
      -      "timeout_ms": {
      -        "description": "Maximum wait for the element in milliseconds. Defaults to 0, which performs a single check. The recording deadline can end the wait earlier.",
      -        "type": "integer"
      -      },
      -      "type": {
      -        "const": "locate_selector"
      -      }
      -    },
      -    "required": [
      -      "selector"
      -    ]
      -  },
      -  {
      -    "description": "Find and click an element, scrolling it into view when needed.",
      -    "properties": {
      -      "button": {
      -        "description": "Mouse button: left (default), right, middle, back, or forward.",
      -        "enum": [
      -          "left",
      -          "right",
      -          "middle",
      -          "back",
      -          "forward",
      -          null
      -        ],
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "count": {
      -        "description": "Click count reported to the page, from 1 to 3. Defaults to 1. This sets the click event count; it does not repeat the action.",
      -        "maximum": 3,
      -        "minimum": 1,
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "delay_ms": {
      -        "description": "Time between mouse down and mouse up, from 0 to 5000 milliseconds. Defaults to 0.",
      -        "maximum": 5000,
      -        "minimum": 0,
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "if_not_found": {
      -        "description": "Actions to run when the click target is missing. Omitted, null, or empty continues. Use an error action to fail instead.",
      -        "items": {
      -          "$ref": "#/properties/content/properties/actions/items",
      -          "description": "One action in the recording timeline, selected by its type discriminator. Actions run in order; nested branches contain ordinary actions and do not inherit selectors."
      -        },
      -        "type": [
      -          "array",
      -          "null"
      -        ]
      -      },
      -      "offset_x": {
      -        "description": "Horizontal offset in CSS pixels from the element's border-box top-left. If either offset is supplied, the other defaults to 0; otherwise the default clickable point is used.",
      -        "maximum": 1.7976931348623157e+308,
      -        "minimum": -1.7976931348623157e+308,
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "offset_y": {
      -        "description": "Vertical offset in CSS pixels from the element's border-box top-left. If either offset is supplied, the other defaults to 0; otherwise the default clickable point is used.",
      -        "maximum": 1.7976931348623157e+308,
      -        "minimum": -1.7976931348623157e+308,
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "selector": {
      -        "description": "CSS selector for the element to click.",
      -        "type": "string"
      -      },
      -      "timeout_ms": {
      -        "description": "Maximum wait for the element in milliseconds. Defaults to 0, which performs a single check. The recording deadline can end the wait earlier.",
      -        "type": "integer"
      -      },
      -      "type": {
      -        "const": "click"
      -      }
      -    },
      -    "required": [
      -      "selector"
      -    ]
      -  },
      -  {
      -    "description": "Fail the recording and stop executing actions. Must be the last action in its array.",
      -    "properties": {
      -      "type": {
      -        "const": "error"
      -      }
      -    }
      -  },
      -  {
      -    "description": "Scroll down repeatedly until reaching the bottom or the recording deadline. Each movement has its own duration and easing, followed by a pause.",
      -    "properties": {
      -      "easing": {
      -        "description": "Easing for each scroll movement. Defaults to ease_in_out_expo.",
      -        "enum": [
      -          "linear",
      -          "ease_in_cubic",
      -          "ease_out_cubic",
      -          "ease_in_out_cubic",
      -          "ease_in_quad",
      -          "ease_out_quad",
      -          "ease_in_out_quad",
      -          "ease_in_quart",
      -          "ease_out_quart",
      -          "ease_in_out_quart",
      -          "ease_in_quint",
      -          "ease_out_quint",
      -          "ease_in_out_quint",
      -          "ease_in_sine",
      -          "ease_out_sine",
      -          "ease_in_out_sine",
      -          "ease_in_expo",
      -          "ease_out_expo",
      -          "ease_in_out_expo",
      -          "ease_in_circ",
      -          "ease_out_circ",
      -          "ease_in_out_circ",
      -          "ease_in_back",
      -          "ease_out_back",
      -          "ease_in_out_back",
      -          "ease_in_elastic",
      -          "ease_out_elastic",
      -          "ease_in_out_elastic",
      -          "ease_in_bounce",
      -          "ease_out_bounce",
      -          "ease_in_out_bounce",
      -          null
      -        ],
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "ms_between_scrolls": {
      -        "description": "Pause after each completed scroll, before the next starts. Defaults to 400 milliseconds. Zero means no pause. No pause is added after reaching the bottom.",
      -        "maximum": 90000,
      -        "minimum": 0,
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "scroll_distance": {
      -        "description": "Positive distance per scroll in CSS pixels (number or px string), or viewport height (vh string). Examples: 900, 900px, 90vh. Omitted or null defaults to 90vh.",
      -        "exclusiveMinimum": 0,
      -        "type": [
      -          "string",
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "scroll_duration_ms": {
      -        "description": "Duration of each scroll movement in milliseconds. Defaults to 800. Must be between 1 and 90000.",
      -        "maximum": 90000,
      -        "minimum": 1,
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "stall_at_end_ms": {
      -        "description": "Time to stall after reaching the bottom, limited by the remaining recording time. Defaults to 0 milliseconds. No stall is added if scrolling runs out of time before reaching the bottom.",
      -        "maximum": 90000,
      -        "minimum": 0,
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "type": {
      -        "const": "simple_scroll"
      -      }
      -    }
      -  },
      -  {
      -    "description": "Execute JavaScript in the page while recording continues, awaiting any returned promise.",
      -    "properties": {
      -      "if_error": {
      -        "description": "Actions to run if the script throws or times out. Null or omitted fails the recording; an empty array ignores the error. A timeout cannot undo side effects or cancel promises and timers already created by the script.",
      -        "items": {
      -          "$ref": "#/properties/content/properties/actions/items",
      -          "description": "One action in the recording timeline, selected by its type discriminator. Actions run in order; nested branches contain ordinary actions and do not inherit selectors."
      -        },
      -        "type": [
      -          "array",
      -          "null"
      -        ]
      -      },
      -      "script": {
      -        "description": "JavaScript async function body. Supports await; its return value is ignored. For example: await new Promise(resolve => setTimeout(resolve, 500));",
      -        "type": "string"
      -      },
      -      "timeout_ms": {
      -        "description": "Maximum execution time in milliseconds. Zero or omitted uses the page timeout. Maximum 90000. Recording time and wall time are both bounded.",
      -        "type": "integer"
      -      },
      -      "type": {
      -        "const": "execute_javascript"
      -      }
      -    },
      -    "required": [
      -      "script"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "description": "Scroll through an ordered sequence of timed movements in the document or a selected container.",
      +    "properties": {
      +      "container_selector": {
      +        "description": "CSS selector for a scrollable container. Omitted or null scrolls the document.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "if_not_found": {
      +        "description": "Actions to run if the selected container is missing. Omitted, null, or empty skips this scroll action; it never falls back to the document. Use an error action to fail instead.",
      +        "items": {
      +          "$ref": "#/properties/content/properties/actions/items",
      +          "description": "One action in the recording timeline, selected by its type discriminator. Actions run in order; nested branches contain ordinary actions and do not inherit selectors."
      +        },
      +        "type": [
      +          "array",
      +          "null"
      +        ]
      +      },
      +      "steps": {
      +        "description": "Ordered scroll movements. At least one step is required.",
      +        "items": {
      +          "description": "One timed scroll movement within a scroll action. Steps run in order.",
      +          "properties": {
      +            "duration_ms": {
      +              "description": "Duration of the movement in milliseconds. Must be at least 1. The recording deadline can cut the movement short.",
      +              "maximum": 2147483647,
      +              "minimum": 1,
      +              "type": "integer"
      +            },
      +            "easing": {
      +              "description": "Easing curve for the scroll movement. Defaults to linear (constant speed).",
      +              "enum": [
      +                "linear",
      +                "ease_in_cubic",
      +                "ease_out_cubic",
      +                "ease_in_out_cubic",
      +                "ease_in_quad",
      +                "ease_out_quad",
      +                "ease_in_out_quad",
      +                "ease_in_quart",
      +                "ease_out_quart",
      +                "ease_in_out_quart",
      +                "ease_in_quint",
      +                "ease_out_quint",
      +                "ease_in_out_quint",
      +                "ease_in_sine",
      +                "ease_out_sine",
      +                "ease_in_out_sine",
      +                "ease_in_expo",
      +                "ease_out_expo",
      +                "ease_in_out_expo",
      +                "ease_in_circ",
      +                "ease_out_circ",
      +                "ease_in_out_circ",
      +                "ease_in_back",
      +                "ease_out_back",
      +                "ease_in_out_back",
      +                "ease_in_elastic",
      +                "ease_out_elastic",
      +                "ease_in_out_elastic",
      +                "ease_in_bounce",
      +                "ease_out_bounce",
      +                "ease_in_out_bounce"
      +              ],
      +              "type": "string"
      +            },
      +            "to": {
      +              "anyOf": [
      +                {
      +                  "description": "Scroll to an edge of the document or selected container.",
      +                  "properties": {
      +                    "position": {
      +                      "description": "Edge to scroll to: top (default), bottom, left, or right.",
      +                      "enum": [
      +                        "top",
      +                        "bottom",
      +                        "left",
      +                        "right"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    "type": {
      +                      "const": "position"
      +                    }
      +                  }
      +                },
      +                {
      +                  "description": "Scroll to absolute coordinates within the document or selected container.",
      +                  "properties": {
      +                    "type": {
      +                      "const": "coordinates"
      +                    },
      +                    "x": {
      +                      "description": "Absolute horizontal scroll position in CSS pixels. Defaults to 0.",
      +                      "maximum": 1.7976931348623157e+308,
      +                      "minimum": -1.7976931348623157e+308,
      +                      "type": "number"
      +                    },
      +                    "y": {
      +                      "description": "Absolute vertical scroll position in CSS pixels. Defaults to 0.",
      +                      "maximum": 1.7976931348623157e+308,
      +                      "minimum": -1.7976931348623157e+308,
      +                      "type": "number"
      +                    }
      +                  }
      +                },
      +                {
      +                  "description": "Scroll to an element matching a CSS selector, with optional offsets.",
      +                  "properties": {
      +                    "if_not_found": {
      +                      "description": "Actions to run when the destination is missing. Omitted, null, or empty skips this movement. If the branch completes, continue with the next step. Use an error action to fail instead.",
      +                      "items": {
      +                        "$ref": "#/properties/content/properties/actions/items",
      +                        "description": "One action in the recording timeline, selected by its type discriminator. Actions run in order; nested branches contain ordinary actions and do not inherit selectors."
      +                      },
      +                      "type": [
      +                        "array",
      +                        "null"
      +                      ]
      +                    },
      +                    "offset_x": {
      +                      "description": "Horizontal offset in CSS pixels added to the destination element's position. Defaults to 0.",
      +                      "maximum": 1.7976931348623157e+308,
      +                      "minimum": -1.7976931348623157e+308,
      +                      "type": "number"
      +                    },
      +                    "offset_y": {
      +                      "description": "Vertical offset in CSS pixels added to the destination element's position. Defaults to 0.",
      +                      "maximum": 1.7976931348623157e+308,
      +                      "minimum": -1.7976931348623157e+308,
      +                      "type": "number"
      +                    },
      +                    "selector": {
      +                      "description": "CSS selector for the destination element.",
      +                      "type": "string"
      +                    },
      +                    "type": {
      +                      "const": "selector"
      +                    }
      +                  },
      +                  "required": [
      +                    "selector"
      +                  ]
      +                }
      +              ],
      +              "description": "Destination for this movement. Select position, coordinates, or selector using its type discriminator.",
      +              "required": [
      +                "type"
      +              ],
      +              "type": "object"
      +            }
      +          },
      +          "required": [
      +            "to"
      +          ],
      +          "type": "object"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "type": {
      +        "const": "scroll"
      +      }
      +    },
      +    "required": [
      +      "steps"
      +    ]
      +  },
      +  {
      +    "description": "Wait while recording and page activity continue.",
      +    "properties": {
      +      "duration_ms": {
      +        "description": "Wait duration in milliseconds. Must be nonnegative. The recording deadline can end the wait early.",
      +        "maximum": 2147483647,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "type": {
      +        "const": "stall"
      +      }
      +    }
      +  },
      +  {
      +    "description": "Look for a matching element and execute the corresponding branch. Branch actions supply their own selectors.",
      +    "properties": {
      +      "if_found": {
      +        "description": "Actions to run when the element is found. Omitted, null, or empty continues. Actions do not inherit the lookup's selector.",
      +        "items": {
      +          "$ref": "#/properties/content/properties/actions/items",
      +          "description": "One action in the recording timeline, selected by its type discriminator. Actions run in order; nested branches contain ordinary actions and do not inherit selectors."
      +        },
      +        "type": [
      +          "array",
      +          "null"
      +        ]
      +      },
      +      "if_not_found": {
      +        "description": "Actions to run when the element is not found before timeout. Omitted, null, or empty continues. Use an error action to fail instead.",
      +        "items": {
      +          "$ref": "#/properties/content/properties/actions/items",
      +          "description": "One action in the recording timeline, selected by its type discriminator. Actions run in order; nested branches contain ordinary actions and do not inherit selectors."
      +        },
      +        "type": [
      +          "array",
      +          "null"
      +        ]
      +      },
      +      "selector": {
      +        "description": "CSS selector of the element to find.",
      +        "type": "string"
      +      },
      +      "timeout_ms": {
      +        "description": "Maximum wait for the element in milliseconds. Defaults to 0, which performs a single check. The recording deadline can end the wait earlier.",
      +        "type": "integer"
      +      },
      +      "type": {
      +        "const": "locate_selector"
      +      }
      +    },
      +    "required": [
      +      "selector"
      +    ]
      +  },
      +  {
      +    "description": "Find and click an element, scrolling it into view when needed.",
      +    "properties": {
      +      "button": {
      +        "description": "Mouse button: left (default), right, middle, back, or forward.",
      +        "enum": [
      +          "left",
      +          "right",
      +          "middle",
      +          "back",
      +          "forward",
      +          null
      +        ],
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "count": {
      +        "description": "Click count reported to the page, from 1 to 3. Defaults to 1. This sets the click event count; it does not repeat the action.",
      +        "maximum": 3,
      +        "minimum": 1,
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "delay_ms": {
      +        "description": "Time between mouse down and mouse up, from 0 to 5000 milliseconds. Defaults to 0.",
      +        "maximum": 5000,
      +        "minimum": 0,
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "if_not_found": {
      +        "description": "Actions to run when the click target is missing. Omitted, null, or empty continues. Use an error action to fail instead.",
      +        "items": {
      +          "$ref": "#/properties/content/properties/actions/items",
      +          "description": "One action in the recording timeline, selected by its type discriminator. Actions run in order; nested branches contain ordinary actions and do not inherit selectors."
      +        },
      +        "type": [
      +          "array",
      +          "null"
      +        ]
      +      },
      +      "offset_x": {
      +        "description": "Horizontal offset in CSS pixels from the element's border-box top-left. If either offset is supplied, the other defaults to 0; otherwise the default clickable point is used.",
      +        "maximum": 1.7976931348623157e+308,
      +        "minimum": -1.7976931348623157e+308,
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "offset_y": {
      +        "description": "Vertical offset in CSS pixels from the element's border-box top-left. If either offset is supplied, the other defaults to 0; otherwise the default clickable point is used.",
      +        "maximum": 1.7976931348623157e+308,
      +        "minimum": -1.7976931348623157e+308,
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "selector": {
      +        "description": "CSS selector for the element to click.",
      +        "type": "string"
      +      },
      +      "timeout_ms": {
      +        "description": "Maximum wait for the element in milliseconds. Defaults to 0, which performs a single check. The recording deadline can end the wait earlier.",
      +        "type": "integer"
      +      },
      +      "type": {
      +        "const": "click"
      +      }
      +    },
      +    "required": [
      +      "selector"
      +    ]
      +  },
      +  {
      +    "description": "Fail the recording and stop executing actions. Must be the last action in its array.",
      +    "properties": {
      +      "type": {
      +        "const": "error"
      +      }
      +    }
      +  },
      +  {
      +    "description": "Scroll down repeatedly until reaching the bottom or the recording deadline. Each movement has its own duration and easing, followed by a pause.",
      +    "properties": {
      +      "easing": {
      +        "description": "Easing for each scroll movement. Defaults to ease_in_out_quad.",
      +        "enum": [
      +          "linear",
      +          "ease_in_cubic",
      +          "ease_out_cubic",
      +          "ease_in_out_cubic",
      +          "ease_in_quad",
      +          "ease_out_quad",
      +          "ease_in_out_quad",
      +          "ease_in_quart",
      +          "ease_out_quart",
      +          "ease_in_out_quart",
      +          "ease_in_quint",
      +          "ease_out_quint",
      +          "ease_in_out_quint",
      +          "ease_in_sine",
      +          "ease_out_sine",
      +          "ease_in_out_sine",
      +          "ease_in_expo",
      +          "ease_out_expo",
      +          "ease_in_out_expo",
      +          "ease_in_circ",
      +          "ease_out_circ",
      +          "ease_in_out_circ",
      +          "ease_in_back",
      +          "ease_out_back",
      +          "ease_in_out_back",
      +          "ease_in_elastic",
      +          "ease_out_elastic",
      +          "ease_in_out_elastic",
      +          "ease_in_bounce",
      +          "ease_out_bounce",
      +          "ease_in_out_bounce",
      +          null
      +        ],
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "ms_between_scrolls": {
      +        "description": "Pause after each completed scroll, before the next starts. Defaults to 400 milliseconds. Zero means no pause. The pause also allows newly loaded content to appear before confirming the bottom.",
      +        "maximum": 90000,
      +        "minimum": 0,
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "scroll_distance": {
      +        "description": "Positive distance per scroll in CSS pixels (number or px string), or viewport height (vh string). Examples: 900, 900px, 95vh. Omitted or null defaults to 95vh.",
      +        "exclusiveMinimum": 0,
      +        "type": [
      +          "string",
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "scroll_duration_ms": {
      +        "description": "Duration of each scroll movement in milliseconds. Defaults to 800. Must be between 1 and 90000.",
      +        "maximum": 90000,
      +        "minimum": 1,
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "stall_at_end_ms": {
      +        "description": "Time to stall after reaching the bottom, limited by the remaining recording time. Defaults to 0 milliseconds. No stall is added if scrolling runs out of time before reaching the bottom.",
      +        "maximum": 90000,
      +        "minimum": 0,
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "type": {
      +        "const": "simple_scroll"
      +      }
      +    }
      +  },
      +  {
      +    "description": "Execute JavaScript in the page while recording continues, awaiting any returned promise.",
      +    "properties": {
      +      "if_error": {
      +        "description": "Actions to run if the script throws or times out. Null or omitted fails the recording; an empty array ignores the error. A timeout cannot undo side effects or cancel promises and timers already created by the script.",
      +        "items": {
      +          "$ref": "#/properties/content/properties/actions/items",
      +          "description": "One action in the recording timeline, selected by its type discriminator. Actions run in order; nested branches contain ordinary actions and do not inherit selectors."
      +        },
      +        "type": [
      +          "array",
      +          "null"
      +        ]
      +      },
      +      "script": {
      +        "description": "JavaScript async function body. Supports await; its return value is ignored. For example: await new Promise(resolve => setTimeout(resolve, 500));",
      +        "type": "string"
      +      },
      +      "timeout_ms": {
      +        "description": "Maximum execution time in milliseconds. Zero or omitted uses the page timeout. Maximum 90000. Recording time and wall time are both bounded.",
      +        "type": "integer"
      +      },
      +      "type": {
      +        "const": "execute_javascript"
      +      }
      +    },
      +    "required": [
      +      "script"
      +    ]
      +  }
      +]
  3. Added

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare it as a non-read-only, open-world, non-idempotent operation, so the description's real contribution is the asynchronous contract: capture is not finished when the call returns, and id/status_url are available immediately in the item. It also discloses the format-dependent audio capability (MP4/WebM only). It does not mention plan gating or resource cost, which would have added further context beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with purpose, then audio support, then the async return behavior, then the follow-up tool. Nearly every clause earns its place, with only the id/status_url enumeration being lightly redundant against the output schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Output schema exists, so return shapes need not be enumerated, and the description still adds the timing nuance that the capture completes later. For a tool of this complexity, the notable gap is that it never signals that the recording can be scripted with timed actions (scroll, click, stall, JS) or what triggers capture start, all of which live only in the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the very detailed nested content schema (actions, trigger, output, request_overrides) already carries all parameter meaning. The description restates the audio-source rule (asset ID or public URL) and format/audio pairing, adding little beyond the schema; setting the baseline at 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ("Creates a video or animated GIF from HTML, CSS, and JavaScript") and implicitly bounds scope by input type, which separates it from content-by-URL creation. It does not explicitly name create_url_recording as the alternative, so the differentiation is inferential rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only usage routing is the lifecycle hint "Use get_recording_status to check readiness," which is genuinely useful. There is no explicit guidance on when to choose this tool over create_url_recording or over the batch/image render siblings, so the when-to-use decision is left to inference from the input format.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.