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

Method parameters

crates/opencode-tool/src/invalid.rs:25–44  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

23 }
24
25 fn parameters(&self) -> serde_json::Value {
26 serde_json::json!({
27 "type": "object",
28 "properties": {
29 "toolName": {
30 "type": "string",
31 "description": "The name of the invalid tool that was requested"
32 },
33 "errorMessage": {
34 "type": "string",
35 "description": "Description of why the tool call is invalid"
36 },
37 "receivedArgs": {
38 "type": "object",
39 "description": "The arguments that were passed to the invalid tool"
40 }
41 },
42 "required": ["toolName", "errorMessage"]
43 })
44 }
45
46 async fn execute(
47 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected