Skip to content

toolmark-monorepo / @toolmark/core / defineTool

Function: defineTool() ​

defineTool<I, O>(def): ToolDefinition<I, O>

Defined in: packages/core/src/tool.ts:173

Identity helper that infers I/O from the schemas.

Type Parameters ​

I ​

I

O ​

O

Parameters ​

def ​

ToolDefinition<I, O>

The tool declaration.

Returns ​

ToolDefinition<I, O>

def unchanged.