MCPcopy Create free account
hub / github.com/anomalyco/opencode / definition

Function definition

packages/core/src/tool/tool.ts:149–149  ·  view source on GitHub ↗
(name: string, tool: AnyTool)

Source from the content-addressed store, hash-verified

147
148export const permission = (tool: AnyTool, name: string) => runtimeOf(tool).permission ?? name
149export const definition = (name: string, tool: AnyTool) => runtimeOf(tool).definition(name)
150export const settle = (tool: AnyTool, call: ToolCall, context: Context) => runtimeOf(tool).settle(call, context)
151
152function runtimeOf(tool: AnyTool) {

Callers 1

registry.tsFile · 0.90

Calls 1

runtimeOfFunction · 0.85

Tested by

no test coverage detected