create-board-export-job
Export Miro boards to PDF or CSV format by creating a batch export job for enterprise organizations. Specify board IDs and format to generate downloadable exports.
Instructions
Creates an export job for one or more boards (Enterprise only)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | Yes | Unique identifier of the organization | |
| requestId | Yes | Unique identifier of the board export job | |
| boardIds | Yes | Array of board IDs to export | |
| format | No | Export format (default: pdf) |
Implementation Reference
- src/tools/createBoardExportJob.ts:15-33 (handler)The asynchronous handler function that creates an export job for specified boards using the Miro Enterprise API.
fn: async ({ orgId, requestId, boardIds, format }) => { try { const createBoardExportRequest = { boardIds: boardIds, ...(format && { format: format }) }; const response = await MiroClient.getApi().enterpriseCreateBoardExport( orgId, requestId, createBoardExportRequest ); return ServerResponse.text(JSON.stringify(response.body, null, 2)); } catch (error) { process.stderr.write(`Error creating board export job: ${error}\n`); return ServerResponse.error(error); } } - Zod schema defining the input arguments for the create-board-export-job tool.
args: { orgId: z.string().describe("Unique identifier of the organization"), requestId: z.string().describe("Unique identifier of the board export job"), boardIds: z.array(z.string()).describe("Array of board IDs to export"), format: z.enum(["pdf", "csv"]).optional().nullish().describe("Export format (default: pdf)") }, - src/index.ts:192-192 (registration)Registers the createBoardExportJobTool with the ToolBootstrapper in the main index file.
.register(createBoardExportJobTool)