Skip to main content
Glama
m0rvayne

mcp-osascript

screenshot

Capture the full screen, a selected region, or a specific application window to an image file or the clipboard. Specify format, save path, and overwrite behavior as needed.

Instructions

Capture the full screen, a region, or a single application window to a file, or to the clipboard with clipboard: true (which replaces the clipboard contents). An existing file is never overwritten unless overwrite: true is passed, and the path extension must match the format. Requires Screen Recording permission in System Settings > Privacy & Security > Screen Recording.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appNoFor window mode: app name to capture.
modeNoCapture mode.fullscreen
pathNoAbsolute output file path; the extension must match 'format'. Defaults to a timestamped file in the temp directory.
formatNoImage format.png
regionNoFor region mode: capture area {x, y, width, height}.
windowNoFor window mode: window index (1-based).
displayNoFor fullscreen mode: display number (1=main).
clipboardNoCopy to the clipboard instead of writing a file. This replaces the current clipboard contents.
overwriteNoAllow replacing an existing file at 'path'. Without this an existing file is never overwritten.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.3

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly warns that clipboard mode replaces clipboard contents, existing files are never overwritten unless overwrite is true, the extension must match format, and Screen Recording permission is required.

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

Conciseness5/5

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

Two sentences deliver the core purpose first, then critical constraints and prerequisites. There is no filler or redundant restatement of the tool name.

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?

For a 9-parameter tool with no output schema and no annotations, the description covers modes, destinations, overwrite semantics, extension requirements, defaults, and permissions. It does not describe what the tool returns (e.g., file path or success status), but the main invocation requirements are present.

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 schema already documents all parameters and defaults. The description reinforces key behaviors like clipboard replacement and overwrite protection but does not add much meaning beyond the schema.

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

Purpose5/5

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

The description uses a specific verb ('Capture') with clear resource targets: full screen, region, or application window, plus destination options (file or clipboard). It is immediately distinguishable from sibling tools like get_displays or get_clipboard.

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

Usage Guidelines4/5

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

It clearly states the capture modes and when clipboard/overwrite behavior applies, plus the required Screen Recording permission. It does not explicitly discuss when to prefer a sibling tool, but no sibling directly competes with screenshot capture.

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