Skip to main content
Glama

vscode_open_file

Opens a file in VS Code and brings it into view; optionally jumps to a line/column or highlights a range for targeted navigation.

Instructions

Open a file in VS Code, bring it into view, and optionally jump to a line/column or highlight a selection range.

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": "vscode_open_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
PathYesAbsolute file path (Local or Remote-SSH POSIX path).
EndLineNo1-indexed end line for selection.
PreviewNoOpen as preview tab (default false).
EndColumnNo1-indexed end column for selection.
StartLineNo1-indexed start line.
StartColumnNo1-indexed start column.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it leaves key behavior unstated: whether a missing file is created or errors, whether a VS Code instance/workspace must already exist, and whether opening steals editor focus from the user. It only tells the agent the happy-path effect of the call, which is thin for a UI-affecting mutation.

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?

A single front-loaded sentence with the primary action first and the optional positional behavior trailing. Nothing is redundant or padded.

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 6-parameter tool with no annotations and no output schema, the description covers what the call does but not the surrounding preconditions or side effects an agent needs to call it safely. It is adequate to invoke correctly, but incomplete on failure modes and editor-state impact.

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, but the description adds real semantics beyond the schema: it explains that the line/column parameters may be used to either jump to a position or define a highlight range across start and end. That framing helps the agent understand why four separate positional parameters exist together.

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?

"Open a file in VS Code, bring it into view, and optionally jump to a line/column or highlight a selection range" gives a specific verb and resource plus the visible-effect scope. The "in VS Code / bring it into view" phrasing distinguishes this from content-reading siblings such as read_file, but no sibling is named explicitly, so the differentiation is inferred rather than stated.

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?

There is no explicit when-to-use or when-not guidance, and no alternative is named. Usage is only implied: the emphasis on bringing the file into the editor view suggests this is for surfacing a file to the user rather than reading its contents, but the agent must infer that distinction from the sibling list.

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