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

Function tools

packages/opencode/src/session/llm/native-request.ts:126–133  ·  view source on GitHub ↗
(input: Record<string, ToolInput> | undefined)

Source from the content-addressed store, hash-verified

124}
125
126const tools = (input: Record<string, ToolInput> | undefined): ToolDefinition[] =>
127 Object.entries(input ?? {}).map(([name, item]) =>
128 ToolDefinition.make({
129 name,
130 description: item.description ?? "",
131 inputSchema: schema(item.inputSchema),
132 }),
133 )
134
135const generation = (input: RequestInput) => {
136 const result = {

Callers 2

TaskFunction · 0.85
requestFunction · 0.85

Calls 2

schemaFunction · 0.70
makeMethod · 0.45

Tested by

no test coverage detected