MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / parameters

Method parameters

crates/opencode-tool/src/lsp_tool.rs:50–84  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

48 }
49
50 fn parameters(&self) -> serde_json::Value {
51 serde_json::json!({
52 "type": "object",
53 "properties": {
54 "operation": {
55 "type": "string",
56 "enum": ["goToDefinition", "findReferences", "hover", "documentSymbol", "workspaceSymbol", "goToImplementation", "typeDefinition", "rename", "diagnostics", "prepareCallHierarchy", "incomingCalls", "outgoingCalls"],
57 "description": "The LSP operation to perform"
58 },
59 "filePath": {
60 "type": "string",
61 "description": "The absolute or relative path to the file"
62 },
63 "line": {
64 "type": "integer",
65 "minimum": 1,
66 "description": "The line number (1-based, as shown in editors)"
67 },
68 "character": {
69 "type": "integer",
70 "minimum": 1,
71 "description": "The character offset (1-based, as shown in editors)"
72 },
73 "query": {
74 "type": "string",
75 "description": "Query string for workspaceSymbol operation"
76 },
77 "newName": {
78 "type": "string",
79 "description": "New name for rename operation"
80 }
81 },
82 "required": ["operation", "filePath"]
83 })
84 }
85
86 async fn execute(
87 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected