symbol
The symbol name to look for on the specified line
How to use it
symbol is exposed by the Vscode MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the symbol tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL VSCODE MCP SERVER LISTINGOther tools in Vscode MCP Server (35)
The shell command to execute
The content to write to the file
Copies a file to a new location using VS Code's file system API
Creates a new file using VS Code's WorkspaceEdit API
(optional): Optional working directory for the command (default: '.')
(optional): File encoding (default: utf-8)
The end line number (1-based, inclusive)
Executes a shell command in the VS Code integrated terminal with shell integration
The current path of the file or directory to rename
(optional): Output format ('text' or 'json'). Default: 'text'
Checks for warnings and errors in your workspace
for file structure overview instead of reading entire files
for type info and docs without full file context
(optional): Whether to ignore if the file exists (default: false)
(optional): Whether to include the diagnostic source. Default: true
The line number of the symbol
Lists files and directories in your workspace
(optional): Maximum character count (default: 100,000)
(optional): Maximum nesting depth to display
(optional): Maximum number of results to return (default: 10)
Moves a file or directory to a new location using VS Code's WorkspaceEdit API
The new name for the file or directory
The original code for validation
(optional): Whether to overwrite if target already exists (default: false)
The path to list files from
The search query for symbol names
Reads file contents
(optional): Whether to list files recursively
Renames a file or directory using VS Code's WorkspaceEdit API
Replaces specific lines in a file
to find symbols by name across the project
(optional): Array of severity levels to include (0=Error, 1=Warning, 2=Information, 3=Hint). Default: [0, 1]
The current path of the file or directory to move
The start line number (1-based, inclusive)
The new path where the file or directory should be moved to