Skip to content

Interface: AppKitToolOptions

Input shape for the AppKit-style tool factory. A trimmed subset of Mastra’s createTool options that mirrors the @databricks/appkit/beta tool({ description, schema, execute }) signature.

Generics are intentionally absent - inference flows through the caller’s schema (typically a Zod object), and the execute body destructures naturally from that. Reach for createTool when you need the fully-typed input/output schemas wired explicitly.

description: string

Human-readable description shown to the model. Required.


execute: (input, context?) => unknown

Execute body. First arg is the parsed input (typed off schema when supplied), second arg is the full Mastra execution context (request context, abort signal, mastra instance) if you need it.

any

unknown

unknown


optional id?: string

Optional stable identifier; auto-derived from description when omitted.


optional schema?: unknown

Optional input schema (any Standard Schema instance, e.g. Zod). Maps to Mastra’s inputSchema; passed through to the model verbatim.