Skip to main content

@wildix/wim-tools-client > ExecuteToolCommand

ExecuteToolCommand class

Execute a tool with the provided input.

Signature:

export declare class ExecuteToolCommand extends ExecuteToolCommand_base 

Extends: ExecuteToolCommand_base

Example

Use a bare-bones client and the command you need to make an API call.

import { ToolsClient, ExecuteToolCommand } from "@wildix/wim-tools-client"; // ES Modules import
// const { ToolsClient, ExecuteToolCommand } = require("@wildix/wim-tools-client"); // CommonJS import
const client = new ToolsClient(config);
const input = { // ExecuteToolInput
companyId: "STRING_VALUE",
id: "STRING_VALUE", // required
input: "DOCUMENT_VALUE", // required
service: "STRING_VALUE",
user: "STRING_VALUE",
};
const command = new ExecuteToolCommand(input);
const response = await client.send(command);
// { // ExecuteToolOutput
// result: { // ToolExecutionResult
// output: "DOCUMENT_VALUE", // required
// },
// };