read_file
Read contents of a file
How to use it
read_file is exposed by the Vscode Context MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the read_file tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL VSCODE CONTEXT MCP LISTINGOther tools in Vscode Context MCP (17)
Create directory structure
Get recursive directory structure
Make line-based edits to a file
Retrieve a list of files attached to the workspace
Get details and content of the active file
Get detailed file metadata
List all open editor tabs
Retrieve diagnostics (errors/warnings)
Get current project root directory
Get terminal output and history
Retrieve complete VSCode context information
List files and directories
Move or rename files and directories
Read multiple files at once
Execute a shell command
Find files matching a pattern
Create or overwrite a file