UNPKG

bc-webclient-mcp

Version:

Model Context Protocol (MCP) server for Microsoft Dynamics 365 Business Central via WebUI protocol. Enables AI assistants to interact with BC through the web client protocol, supporting Card, List, and Document pages with full line item support and server

40 lines 1.42 kB
/** * Get Workflow State Tool * * Retrieves the current state of a workflow by ID. * Use this to inspect workflow progress, operations, errors, and current position. */ import type { Result } from '../core/result.js'; import type { BCError } from '../core/errors.js'; import { BaseMCPTool } from './base-tool.js'; /** * Input schema for get_workflow_state tool. */ export interface GetWorkflowStateInput { readonly workflowId: string; } /** * GetWorkflowStateTool retrieves workflow state by ID. * * This tool provides access to: * - Workflow metadata (goal, status, timestamps) * - Current navigation state (page, record) * - Operation history * - Pending changes and errors */ export declare class GetWorkflowStateTool extends BaseMCPTool { readonly name = "get_workflow_state"; readonly description = "Get the current state of a workflow by ID. Returns workflow metadata, current position, operation history, and errors."; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly workflowId: { readonly type: "string"; readonly description: "The workflow ID to retrieve state for"; }; }; readonly required: readonly ["workflowId"]; }; protected executeInternal(input: unknown): Promise<Result<unknown, BCError>>; } //# sourceMappingURL=get-workflow-state-tool.d.ts.map