Skip to content

Type Alias: ToolEvent

ToolEvent = object

Lifecycle of a single tool invocation surfaced inline in the assistant bubble. running while we wait for the backend, done on tool-result, error on tool-error. progress is an in-order log of mid-flight events the tool itself pushed through Mastra’s ctx.writer.

id: string


optional progress?: ToolProgress[]


status: "running" | "done" | "error"


toolName: string