ActionDefinition
Properties
| Property | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Unique identifier for the action |
description | string | Yes | Explains when to use this action |
options | Record<string, ActionOption> | No | Parameters the action accepts |
approvalRequired | boolean | No | Require user confirmation |
ActionOption
Properties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
type | "string" | "number" | "boolean" | Yes | — | Parameter type |
description | string | No | — | Explains the parameter |
required | boolean | No | false | Whether parameter is required |
ToolAction
The action object passed toonAction: