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

Method parameters

crates/opencode-tool/src/read.rs:56–75  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

54 }
55
56 fn parameters(&self) -> serde_json::Value {
57 serde_json::json!({
58 "type": "object",
59 "properties": {
60 "file_path": {
61 "type": "string",
62 "description": "The absolute path to the file or directory to read"
63 },
64 "offset": {
65 "type": "number",
66 "description": "The line number to start reading from (1-indexed)"
67 },
68 "limit": {
69 "type": "number",
70 "description": "The maximum number of lines to read (defaults to 2000)"
71 }
72 },
73 "required": ["file_path"]
74 })
75 }
76
77 async fn execute(
78 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected