code_action_apply
Apply one previously previewed Code Action transaction
How to use it
code_action_apply is exposed by the Vsc Lsp MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the code_action_apply tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL VSC LSP MCP LISTINGOther tools in Vsc Lsp MCP (39)
/ actionId — filter and continue the Code Action transaction flow
returned by call hierarchy operations for recursive traversal
character offset (1-based, matching editor display). Required for position-dependent operations
Get decompiled Java class source via jdt:// URI (from jdtls), to read library/dependency implementations
Preview one listed Code Action without side effects
List editable Code Actions at a position
Get the declaration location of a symbol
Get the definition location of a symbol
Get diagnostics for one file with optional severity, source, and code filters
Find semantic occurrences of a symbol in the current document
Get navigable document links exposed by the active language extension
Get the symbol outline (tree) of a document
Execute an LSP operation in an explicitly selected or automatically matched instance
Preview editable fix-all or quick-fix edits for an entire document
Report the shared broker status
Get hover information (documentation, type, etc.) at a position
Get the implementation location(s) of a symbol
Find all callers of a symbol
Get inferred type and parameter-name hints for a document range
optional instance returned by listinstances; takes precedence over automatic path routing
line number (1-based, matching editor display). Required for position-dependent operations
List active VS Code windows, workspace roots, and instance IDs
/ renameId — used by the three-stage rename flow
which LSP operation to execute
Find all callees (calls made by) a symbol
Prepare call hierarchy nodes and return recursive callId values
Locate and validate a rename candidate
required only for workspacesymbols
Find all references to a symbol
Apply one previously previewed rename transaction
Preview a symbol rename without modifying files
Rename a workspace file or directory in the matching instance
Get signatures and active-parameter information at a call site
, endLine — optional inclusive range for inlayhints
, includeDeclaration, includeExternal, pathPattern, severities, sources, codes — optional result filters applied before maxResults
Get the type definition location of a symbol
file path or URI string (supports both plain paths and file:///jdt:// URIs)
Get filtered diagnostics under a workspace path
Search for symbols across the entire workspace by query