> ## Documentation Index
> Fetch the complete documentation index at: https://cognitio-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ToolDefinitionBase

> Exact type definition referenced by the public SDK.

This definition is generated from the same source as the SDK. Protocol types describe the runtime HTTP API; prefer the high-level SDK for session ownership and callbacks.

```ts theme={null}
export interface ToolDefinitionBase<Input = unknown, Output = unknown> {
  name: string
  description?: string
  execute(args: Input, ctx: ToolContext): Promise<Output> | Output
  metadata?: {
    searchHint?: string
    alwaysLoad?: boolean
  }
  annotations?: {
    readOnly?: boolean
    destructive?: boolean
    idempotent?: boolean
    openWorld?: boolean
  }
}
```

Related types: [ToolContext](https://cognitio-agent.mintlify.site/api-reference/supporting/ToolContext.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.