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

Method parameters

crates/opencode-tool/src/task.rs:42–78  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

40 }
41
42 fn parameters(&self) -> serde_json::Value {
43 serde_json::json!({
44 "type": "object",
45 "properties": {
46 "subagent_type": {
47 "type": "string",
48 "description": "The type of specialized agent to use for this task (e.g., 'explore', 'librarian', 'oracle')"
49 },
50 "description": {
51 "type": "string",
52 "description": "A short (3-5 words) description of the task"
53 },
54 "prompt": {
55 "type": "string",
56 "description": "The task for the agent to perform"
57 },
58 "task_id": {
59 "type": "string",
60 "description": "Resume a previous task by passing its task_id"
61 },
62 "command": {
63 "type": "string",
64 "description": "The command that triggered this task (optional)"
65 },
66 "load_skills": {
67 "type": "array",
68 "items": {"type": "string"},
69 "description": "Skills to load for the sub-agent (optional)"
70 },
71 "run_in_background": {
72 "type": "boolean",
73 "description": "Run the task in background (default: false)"
74 }
75 },
76 "required": ["subagent_type", "description", "prompt"]
77 })
78 }
79
80 async fn execute(
81 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected