MCPcopy Index your code
hub / github.com/CommandCodeAI/BaseAI / Tool

Interface Tool

packages/baseai/types/tools.ts:3–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { z } from 'zod';
2
3export interface Tool {
4 run: (...args: any[]) => Promise<any> | any;
5 type: 'function';
6 function: {
7 name: string;
8 description?: string;
9 parameters?: Record<string, any>;
10 };
11}
12
13export const pipeToolSchema = z.object({
14 type: z.literal('function'),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected