Skip to main content
Glama
Antigravity Office & PDF Preview

Antigravity Office & PDF Preview

读取本地文档数据

app_load_file

Reads local .docx, .xlsx, .xls, .csv, .pptx, and .pdf binary data by file path so the Office preview panel can display documents without uploading or downloading.

Instructions

供 Office 预览界面按路径读取本机 .docx / .xlsx / .xls / .csv / .pptx / .pdf 二进制数据。

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": {
      "path": "<path>"
    },
    "name": "app_load_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes要读取的本机文档路径

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?

No annotations are supplied, so the description carries full burden; it does disclose one key trait — the result is raw binary data rather than parsed text — which is genuinely useful. However it says nothing about path restrictions or sandboxing, encoding of the returned binary, size limits, or behavior for an unsupported or missing file, so the behavioral picture is incomplete.

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?

A single front-loaded sentence with no wasted clauses and the operand listed immediately. The '供 Office 预览界面' qualifier is slightly misleading in placement, since it frames the tool's consumer before its action, but nothing is verbose.

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

Completeness3/5

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

For a one-parameter tool with no annotations and no output schema, the description covers purpose and input formats but leaves the return shape underspecified (how binary is encoded/transported) and omits error conditions, which matters most precisely because there is no output schema to defer to.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description earns an increment by adding real meaning beyond the schema: the extension whitelist defining what a valid path may point to. It still does not state whether absolute vs relative paths or other roots are acceptable.

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?

States a concrete verb (读取) plus the resource (本机 .docx/.xlsx/.xls/.csv/.pptx/.pdf 二进制数据) and enumerates accepted formats, so an agent knows exactly what this returns. It does not explicitly contrast with the sibling preview_office_file, and the '供 Office 预览界面' framing narrows the perceived audience without clarifying scope.

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 phrase '供 Office 预览界面' implies a context (feeding a preview renderer) but gives no explicit when-to-use/when-not guidance and never mentions preview_office_file or app_list_recent as alternatives. Usage must be inferred from the framing rather than stated.

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