Skip to main content
Glama
Antigravity Office & PDF Preview

Antigravity Office & PDF Preview

Office 预览

preview_office_file

Preview local Word, Excel, PowerPoint, and PDF files in Antigravity's right-hand panel without downloading or uploading; omit the path to open the previewer with recent documents.

Instructions

在 Antigravity 右侧面板中直接原样预览本机 Word (.docx)、Excel (.xlsx/.xls/.csv)、PowerPoint (.pptx) 或 PDF (.pdf) 文档。不传 path 时打开空预览器与近期文档列表。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "preview_office_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo要预览的本机文档绝对路径(支持 ~ 或 file:// 路径),可省略

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose real behavior: rendering is verbatim ('原样'), output lands in a specific UI panel, and omitting path yields an empty previewer plus a recent-documents list. It stops short of stating read-only/non-mutating guarantees, error behavior for missing or unsupported files, or any permission/path-restriction constraints.

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?

Two sentences, front-loaded with the action and format list, then the default branch. The format enumeration is long but each token adds real information; nothing is padded or redundant.

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 single optional-parameter viewing tool with no output schema, the definition covers supported formats, rendering location, and the no-argument default state — enough for an agent to invoke it correctly. Only the safety/error profile is left unaddressed, which is minor given the tool's simplicity.

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?

The single `path` parameter is fully documented in the schema (absolute path, ~ or file:// accepted, optional), so coverage is 100% and the baseline is 3. The description adds only the omitted-path behavior, which is useful but does not extend the parameter's semantics beyond the schema.

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?

The description pairs a specific verb (preview, 原样预览) with a concrete resource set (Word .docx, Excel .xlsx/.xls/.csv, PowerPoint .pptx, PDF) and names the rendering surface (the right-side Antigravity panel). It is clear what the tool does without opening the schema, though it never names app_load_file or app_list_recent to draw the boundary, so sibling differentiation is only implicit.

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?

Usage context is implied rather than stated: the agent can infer it is for viewing local documents, and the no-path branch hints at a 'browse recent documents' mode that overlaps with app_list_recent. There is no explicit when-to-use-this-vs-app_load_file guidance and no exclusions for unsupported formats or non-local paths.

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

Deploy Server

Other Tools