MCPcopy
hub / github.com/anomalyco/opencode / toolDefinitions

Function toolDefinitions

packages/core/test/lib/tool.ts:11–14  ·  view source on GitHub ↗
(
  registry: ToolRegistry.Interface,
  permissions?: Parameters<typeof registry.materialize>[0],
)

Source from the content-addressed store, hash-verified

9}
10
11export const toolDefinitions = (
12 registry: ToolRegistry.Interface,
13 permissions?: Parameters<typeof registry.materialize>[0],
14) => registry.materialize(permissions).pipe(Effect.map((materialized) => materialized.definitions))
15
16export const settleTool = (registry: ToolRegistry.Interface, input: ToolRegistry.ExecuteInput) =>
17 registry.materialize().pipe(Effect.flatMap((materialized) => materialized.settle(input)))

Callers 14

tool-write.test.tsFile · 0.90
updateFunction · 0.90
namesFunction · 0.90
tool-edit.test.tsFile · 0.90
tool-read.test.tsFile · 0.90
tool-bash.test.tsFile · 0.90

Calls

no outgoing calls

Tested by 2

updateFunction · 0.72
namesFunction · 0.72