Skip to main content

AiToolHandler

type

The SDK-side AI capability surface. Every value and wire shape — sessions, turns, attachments, tools, signals — is defined once in `@modular/mod-protocol` and imported here; these interfaces exist only where the SDK composes those shapes into capabilities a mod receives on its context.

type AiToolHandler = (input: AiToolInput) => Promise<AiToolHandlerResult>

Import

import { AiToolHandler } from '@modular/sdk';