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

Method parameters

crates/opencode-tool/src/batch.rs:52–79  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

50 }
51
52 fn parameters(&self) -> serde_json::Value {
53 serde_json::json!({
54 "type": "object",
55 "properties": {
56 "toolCalls": {
57 "type": "array",
58 "minItems": 1,
59 "maxItems": 25,
60 "items": {
61 "type": "object",
62 "properties": {
63 "tool": {
64 "type": "string",
65 "description": "The name of the tool to execute"
66 },
67 "parameters": {
68 "type": "object",
69 "description": "Parameters for the tool"
70 }
71 },
72 "required": ["tool", "parameters"]
73 },
74 "description": "Array of tool calls to execute in parallel"
75 }
76 },
77 "required": ["toolCalls"]
78 })
79 }
80
81 async fn execute(
82 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected