Mew. Work. Docs

Built-in tools›Files and search

Code navigation

lsp
Group
Files and search
Turned on by
Its own switch on the Tools page of Conversation settings.
Approval
Not reviewed: runs without asking, within the limits on this page.
Profile key
tool.lsp.description

Asks a language server about code: where a symbol is defined, where it is used, what type it has, and what calls what.

Which server answers depends on the file's extension. You set servers up as described in Code navigation.

When it asks you

Normally a call counts as reading filePath, like read. If the workspace has its own .mewrk/lsp.json, every call asks under Manual and Accept edits, because that file comes with the project and names the command Mewrk starts. Servers from your own ~/.mewrk/lsp.json, or built into Mewrk, never trigger this.

Limits

Files over 10 MB are not sent to the server, and a request waits at most 30 seconds for an answer.

Good to know

You can change a recorded lsp call in the timeline and run it again with Rerun.

Parameters

ParameterTypeDetails
character required
Character
integer1-based, as shown in editors.
filePath required
File path
string—
line required
Line
integer1-based, as shown in editors.
operation required
Operation
stringOne of nine: goToDefinition, findReferences, hover, documentSymbol, workspaceSymbol, goToImplementation, prepareCallHierarchy, incomingCalls, outgoingCalls.
"goToDefinition" "findReferences" "hover" "documentSymbol" "workspaceSymbol" "goToImplementation" "prepareCallHierarchy" "incomingCalls" "outgoingCalls"
query
Query
stringFor workspaceSymbol.