The VS Code of video editing, built for agents.
TypeScript
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { z } from "zod";
import { defineTool } from "../tool";
import { Bytes, outputDirField } from "../schemas";
export const screenshot = defineTool({
name: "screenshot",
title: "Window screenshot",
description:
"Capture the entire application window as a PNG — the full UI as the user sees it (panels, timeline, asset library, canvas viewport), at the window's current size. The tool for checking what the app itself looks like; to render a node or scene cleanly for composition checks use capture instead.",
input: z.object({ output: outputDirField }),
output: z.object({
path: z.string().describe("absolute path of the PNG"),
width: z.number(),
height: z.number(),
}),
result: z.object({ png: Bytes, width: z.number(), height: z.number() }),
environment: "renderer",
});