MCPcopy Index your code
hub / github.com/anomalyco/opencode / runList

Function runList

packages/opencode/src/cli/cmd/run/tool.ts:314–320  ·  view source on GitHub ↗
(p: ToolProps)

Source from the content-addressed store, hash-verified

312}
313
314function runList(p: ToolProps): ToolInline {
315 const dir = text(dict(p.input).path)
316 return {
317 icon: "→",
318 title: dir ? `List ${toolPath(dir)}` : "List",
319 }
320}
321
322function runRead(p: ToolProps<typeof ReadTool>): ToolInline {
323 const file = toolPath(p.input.filePath)

Callers

nothing calls this directly

Calls 3

toolPathFunction · 0.85
textFunction · 0.70
dictFunction · 0.70

Tested by

no test coverage detected