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

Method parameters

crates/opencode-tool/src/bash.rs:57–80  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

55 }
56
57 fn parameters(&self) -> serde_json::Value {
58 serde_json::json!({
59 "type": "object",
60 "properties": {
61 "command": {
62 "type": "string",
63 "description": "The command to execute"
64 },
65 "timeout": {
66 "type": "number",
67 "description": "Optional timeout in milliseconds"
68 },
69 "workdir": {
70 "type": "string",
71 "description": "The working directory to run the command in"
72 },
73 "description": {
74 "type": "string",
75 "description": "Clear, concise description of what this command does"
76 }
77 },
78 "required": ["command", "description"]
79 })
80 }
81
82 async fn execute(
83 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected