/** * GetSmartFormContent — read-only: what each window of a SmartForm prints. * * Source: the Form Builder XML of the active version (FB_CONVERT_FORM_TO_XML, * the same XML as SMARTFORMS > Utilities > Download), parsed into pages → * windows → content nodes. Styles (CSS), SE78 graphics (BMP) and include * texts with a fixed key are fetched too and written as files under the MCP * output directory. Program lines (code nodes, global coding) are never * returned — a code node only shows up as a marker. * * Backend: ZMCP_ADT_DISPATCH action SSF_CONTENT through callDispatch, so it * runs on the OData backend (BASIS 7.40) and on SOAP RFC (BASIS 7.31) alike. * * Companion ABAP sources: sc4sap/abap/zmcp_ssf_content.abap and * sc4sap/abap/zmcp_adt_dispatch_ssf_content_branch.abap */ import type { HandlerContext } from '../../../lib/handlers/interfaces'; export declare const TOOL_DEFINITION: { readonly name: "GetSmartFormContent"; readonly available_in: readonly ["onprem", "legacy"]; readonly description: "[read-only] Read what a SmartForm prints, for a preview: per page and window (position in mm) the content tree — text nodes with their lines (paragraph format + text with inline tags and &symbols&), include texts, tables / templates / loops with line types and cells, graphics, addresses, conditions; code nodes appear only as markers (no program lines). Also fetches the SmartStyles as CSS, the SE78 graphics with a fixed key as BMP files (with printed size) and the include texts with a fixed key. Graphics / texts whose key holds a &symbol& are listed under dynamicReferences. Active version, texts in the logon language. Files go under the MCP output directory (smartforms/
/), including .content.json with the full result; summary=true answers with an overview (windows, data declarations, &symbols&, files) instead of the content tree. Needs the ZMCP_SSF_CONTENT FM and the SSF_CONTENT dispatcher action."; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly form_name: { readonly type: "string"; readonly description: "SmartForm name (e.g. \"ZMY_FORM\")."; }; readonly include_graphics: { readonly type: "boolean"; readonly description: "Fetch SE78 graphics with a fixed key as BMP files. Default true."; }; readonly include_styles: { readonly type: "boolean"; readonly description: "Fetch the SmartStyles (form default + text node styles) as CSS. Default true."; }; readonly include_texts: { readonly type: "boolean"; readonly description: "Fetch include texts (SO10) with a fixed key. Default true."; }; readonly summary: { readonly type: "boolean"; readonly description: "Answer with an overview (windows, data declarations, &symbols&, graphics, files) instead of the full content tree; the full result is always written to files.content. Default false."; }; readonly values: { readonly type: "object"; readonly description: "Sample values for &symbols& in graphic keys (e.g. {\"IM_SIGN\": \"ZSIGN\"}): graphics named by a variable are then fetched too."; }; readonly device: { readonly type: "string"; readonly description: "Output device whose printer fonts the preview should assume. Default: a device whose type has fonts for most of the families of the form."; }; readonly text_language: { readonly type: "string"; readonly description: "Language for include texts whose key has no language: 1-char SAP key (e.g. \"3\") or 2-letter ISO code (e.g. \"KO\"). Default: the form language."; }; }; readonly required: readonly ["form_name"]; }; }; export declare function handleGetSmartFormContent(context: HandlerContext, args: { form_name: string; include_graphics?: boolean; include_styles?: boolean; include_texts?: boolean; summary?: boolean; text_language?: string; device?: string; values?: Record; }): Promise<{ isError: boolean; content: { type: string; text: any; }[]; }>; //# sourceMappingURL=handleGetSmartFormContent.d.ts.map