/** * RuntimeCallDispatch — generic invoker for the ZMCP_ADT_DISPATCH RFC FM. * * Routes through the configured RFC backend (soap / native / gateway / odata) * via lib/rfcBackend.callDispatch. Lets callers exercise any registered * dispatcher action (CUA_FETCH, DYNPRO_READ, SSF_EXISTS, SSF_DOWNLOAD, * SSF_UPLOAD, …) without a per-action handler. * * Both read and write actions go through this single tool; the dispatcher FM * itself decides what each action does. SAP-side authorization checks * (S_RFC, plus per-action checks inside the FORMs) remain authoritative. */ import type { HandlerContext } from '../../../lib/handlers/interfaces'; export declare const TOOL_DEFINITION: { readonly name: "RuntimeCallDispatch"; readonly available_in: readonly ["onprem"]; readonly description: "[runtime] Generic invoker for the ZMCP_ADT_DISPATCH RFC FM. Pass an action name (e.g., SSF_EXISTS, CUA_FETCH, DYNPRO_READ) plus a JSON params object. Returns the dispatcher result + subrc + message. Use this to call any custom Z dispatcher action without adding a per-action MCP tool."; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly action: { readonly type: "string"; readonly description: "Dispatcher action name (uppercased before send). Must match a WHEN clause inside ZMCP_ADT_DISPATCH (e.g., SSF_EXISTS, SSF_DOWNLOAD, SSF_UPLOAD, CUA_FETCH)."; }; readonly params: { readonly type: "object"; readonly description: "JSON-serializable params object passed to the dispatcher (becomes IV_PARAMS). Shape depends on the action — see the matching FORM in ZMCP_ADT_DISPATCH."; readonly additionalProperties: true; }; }; readonly required: readonly ["action"]; }; }; interface RuntimeCallDispatchArgs { action: string; params?: Record; } export declare function handleRuntimeCallDispatch(context: HandlerContext, args: RuntimeCallDispatchArgs): Promise<{ isError: boolean; content: { type: string; text: any; }[]; }>; export {}; //# sourceMappingURL=handleRuntimeCallDispatch.d.ts.map