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

Method parameters

crates/opencode-tool/src/webfetch.rs:50–71  ·  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 "url": {
55 "type": "string",
56 "description": "The URL to fetch content from"
57 },
58 "format": {
59 "type": "string",
60 "enum": ["text", "markdown", "html"],
61 "default": "markdown",
62 "description": "The format to return the content in (text, markdown, or html). Defaults to markdown."
63 },
64 "timeout": {
65 "type": "number",
66 "description": "Optional timeout in seconds (max 120)"
67 }
68 },
69 "required": ["url"]
70 })
71 }
72
73 async fn execute(
74 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected