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.
Properties
Section titled “Properties”description
Section titled “description”description:
string
Human-readable description shown to the model. Required.
execute
Section titled “execute”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.
Parameters
Section titled “Parameters”any
context?
Section titled “context?”unknown
Returns
Section titled “Returns”unknown
optionalid?:string
Optional stable identifier; auto-derived from description when omitted.
schema?
Section titled “schema?”
optionalschema?:unknown
Optional input schema (any Standard Schema instance, e.g. Zod).
Maps to Mastra’s inputSchema; passed through to the model
verbatim.