@maxhealth.tech/prefab / actions / CallTool
Class: CallTool
Defined in: actions/mcp.ts:22
Invoke an MCP tool from the UI. Used in Form.onSubmit or Button.onClick to call backend tools.
Implements
Constructors
Constructor
ts
new CallTool(tool, opts?): CallTool;Defined in: actions/mcp.ts:23
Parameters
| Parameter | Type |
|---|---|
tool | string |
opts? | CallToolOpts |
Returns
CallTool
Properties
tool
ts
readonly tool: string;Defined in: actions/mcp.ts:24
Methods
toJSON()
ts
toJSON(): ActionJSON;Defined in: actions/mcp.ts:28