export_impex
Export data from SAP Commerce Cloud to ImpEx format using FlexibleSearch queries for data migration, backup, or integration tasks.
Instructions
Export data to ImpEx format using a FlexibleSearch query
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flexQuery | Yes | FlexibleSearch query for data to export |
Implementation Reference
- src/hybris-client.ts:445-460 (handler)The exportImpex method in HybrisClient class that executes the tool by POSTing the flexQuery to HAC impex/export endpoint, returning the generated ImpEx string.async exportImpex(flexQuery: string): Promise<string> { const formData = new URLSearchParams({ flexibleSearchQuery: flexQuery, }); return this.hacRequest<string>( `${this.hacPrefix}/console/impex/export`, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: formData, } ); }
- src/index.ts:176-187 (schema)Tool definition including name, description, and input schema (requiring flexQuery string). Used for MCP tool listing and input validation.name: 'export_impex', description: 'Export data to ImpEx format using a FlexibleSearch query', inputSchema: { type: 'object', properties: { flexQuery: { type: 'string', description: 'FlexibleSearch query for data to export', }, }, required: ['flexQuery'], },
- src/index.ts:175-188 (registration)Registration of the export_impex tool in the MCP tools array, making it discoverable via listTools.{ name: 'export_impex', description: 'Export data to ImpEx format using a FlexibleSearch query', inputSchema: { type: 'object', properties: { flexQuery: { type: 'string', description: 'FlexibleSearch query for data to export', }, }, required: ['flexQuery'], }, },
- src/index.ts:339-341 (handler)Dispatches the tool call in the MCP callTool handler by invoking the specific HybrisClient.exportImpex method.case 'export_impex': result = await hybrisClient.exportImpex(args?.flexQuery as string); break;