open_file
Opens a file in VS Code editor, enabling immediate viewing and editing. Use for new files or after modifying existing ones with create_diff tool. Supports specifying view columns, focus retention, and preview mode.
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
Name | Required | Description | Default |
---|---|---|---|
filePath | Yes | Path to the file to open | |
preserveFocus | No | Whether to preserve focus on the current editor | |
preview | No | Whether to open the file in preview mode | |
targetProjectPath | Yes | Path to the project folder we are working in | |
viewColumn | No | The view column to open the file in (1, 2, 3, etc.) |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from vscode-mcp-server
Related Tools
- @juehang/vscode-mcp-server
- @shariqriazz/vertex-ai-mcp-server
- @juehang/vscode-mcp-server
- @skydeckai/mcp-server-aidd
- @juehang/vscode-mcp-server