Skip to content

@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

ParameterType
toolstring
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

Returns

ActionJSON

Implementation of

Action.toJSON

Released under the MIT License.