Skip to main content
Glama

vscode-mcp-server

open_file

Open files in the VS Code editor for immediate viewing and editing. Use this tool to display newly created or modified files directly in the editor, ensuring easy access and workflow integration.

Instructions

Used to open a file in the VS Code editor. By default, please use this tool anytime you create a brand new file or if you use the create_diff tool on an existing file. We want to see changed and newly created files in the editor.

Input Schema

NameRequiredDescriptionDefault
filePathYesPath to the file to open
preserveFocusNoWhether to preserve focus on the current editor
previewNoWhether to open the file in preview mode
targetProjectPathYesPath to the project folder we are working in
viewColumnNoThe view column to open the file in (1, 2, 3, etc.)

Input Schema (JSON Schema)

{ "properties": { "filePath": { "description": "Path to the file to open", "type": "string" }, "preserveFocus": { "description": "Whether to preserve focus on the current editor", "type": "boolean" }, "preview": { "description": "Whether to open the file in preview mode", "type": "boolean" }, "targetProjectPath": { "description": "Path to the project folder we are working in", "type": "string" }, "viewColumn": { "description": "The view column to open the file in (1, 2, 3, etc.)", "type": "number" } }, "required": [ "filePath", "targetProjectPath" ], "type": "object" }

Other Tools from vscode-mcp-server

Related Tools

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/juehang/vscode-mcp-server'

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