Skip to main content
Glama

view_media

Displays a local image or video frame as image content, letting the calling model see the actual visuals. Use timestamp to pick a specific video frame; defaults to middle frame.

Instructions

把一张【图片】、或【视频的某一帧】作为图片内容直接返回,让调用方模型亲眼看到画面。

  • path 是图片(png/jpg/jpeg/webp/gif):直接返回该图(长边超出 max_dimension 会等比缩小)。 GIF 只返回首帧(想感知整段动画请用 describe_video)。

  • path 是视频:给了 timestamp(秒)就抽那一帧;没给则抽正中间那一帧。需要本机有 ffmpeg。

与 describe_video 的分工:describe_video 让 Gemini 看视频写【文字】;view_media 把【画面本身】投给 你(调用方模型)看。stdio / HTTP 模式都可用。

Args: path: 本地图片或视频文件路径。 timestamp: 仅对视频有效,抽取该秒(float)的一帧;不填则取中间帧。 max_dimension: 返回图片的长边上限像素,默认 1024(超出等比缩小,不放大;范围 16~4096)。

Returns: 一张图片内容(MCP ImageContent);出错时返回一句中文说明。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
timestampNo
max_dimensionNo
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 and excels: it discloses image downscaling to max_dimension, GIF first-frame-only behavior, video mid-frame fallback, the local ffmpeg prerequisite, and error return format ('Chinese explanation'). This goes well beyond a simple 'view media' statement.

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?

The description is front-loaded with a one-sentence purpose, followed by well-separated sections for image vs. video behavior, tool differentiation, arguments, and return type. Every sentence earns its place; there is no fluff or repetition despite the detail.

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

Completeness5/5

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

Despite lacking annotations and output schema, the description covers all needed context: return type (MCP ImageContent), error behavior, external dependency (ffmpeg), supported formats, scaling behavior, and runtime modes (stdio/HTTP). It also prevents misuse by referencing describe_video for animation/text needs, making it complete for both selection and invocation.

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

Parameters5/5

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

Schema properties have no descriptions (0% coverage), but the Args section adds rich meaning: path is a local file path, timestamp is video-only and measured in seconds, max_dimension has a default (1024), range (16–4096), and behavior (shrink only, never enlarge). This fully compensates for the schema's silence.

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 opens with a specific verb+resource: 'return an image or a video frame as image content' to the calling model. It clearly distinguishes itself from the sibling tool describe_video by stating the division of labor: describe_video produces text, view_media returns the actual visual content.

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

Usage Guidelines5/5

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

Explicit usage guidance is provided, naming describe_video as the alternative when a textual description is needed or when the whole GIF animation is required. It also clarifies when timestamp should be supplied for videos and the default behavior if omitted, making the decision boundary between tools unmistakable.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SolenmeChiara/Gemini_Video_MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server