get-mindmap-nodes
Retrieve a structured list of mind map nodes from a Miro board using the board ID, enabling pagination and result limits for efficient data extraction.
Instructions
Retrieve a list of mind map nodes on a Miro board
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | Unique identifier (ID) of the board from which you want to retrieve mind map nodes | |
| cursor | No | Cursor for pagination | |
| limit | No | Maximum number of results to return (default: 50) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"boardId": {
"description": "Unique identifier (ID) of the board from which you want to retrieve mind map nodes",
"type": "string"
},
"cursor": {
"description": "Cursor for pagination",
"type": "string"
},
"limit": {
"description": "Maximum number of results to return (default: 50)",
"type": "number"
}
},
"required": [
"boardId"
],
"type": "object"
}
Implementation Reference
- src/tools/getMindmapNodes.ts:14-28 (handler)The asynchronous handler function that retrieves mind map nodes from a Miro board using the MiroClient API, handles pagination parameters, and returns the response or error.fn: async ({ boardId, limit, cursor }) => { try { // Prepare query parameters const query: any = {}; if (limit) query.limit = limit.toString(); if (cursor) query.cursor = cursor; const response = await MiroClient.getApi().getMindmapNodesExperimental(boardId, query); return ServerResponse.text(JSON.stringify(response.body, null, 2)); } catch (error) { process.stderr.write(`Error retrieving Miro mind map nodes: ${error}\n`); return ServerResponse.error(error); } }
- src/tools/getMindmapNodes.ts:9-13 (schema)Zod schema defining the input parameters: boardId (required string), limit (optional number), cursor (optional string).args: { boardId: z.string().describe("Unique identifier (ID) of the board from which you want to retrieve mind map nodes"), limit: z.number().optional().nullish().describe("Maximum number of results to return (default: 50)"), cursor: z.string().optional().nullish().describe("Cursor for pagination") },
- src/index.ts:188-188 (registration)Registers the get-mindmap-nodes tool with the ToolBootstrapper..register(getMindmapNodesTool)