Skip to main content
Glama

create-mindmap-node

Add a mind map node to a Miro board with specified content, position, and optional styling for visual organization.

Instructions

Create a new mind map node on a Miro board

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boardIdYesUnique identifier (ID) of the board where you want to create the node
dataYesThe content and style configuration of the mind map node
positionYesPosition of the node on the board

Implementation Reference

  • The main handler function that implements the tool logic: prepares the mindmap node creation request and calls the Miro API's createMindmapNodesExperimental method.
    fn: async ({ boardId, data, position }) => { try { // Prepare the request data const mindmapCreateRequest = { data: { nodeView: { data: { type: "text", content: data.content } }, ...(data.parentId && { parentId: data.parentId }), ...(data.style && { style: data.style }) }, position }; // Call the Miro API to create a mind map node const response = await MiroClient.getApi().createMindmapNodesExperimental(boardId, mindmapCreateRequest); return ServerResponse.text(JSON.stringify(response.body, null, 2)); } catch (error) { process.stderr.write(`Error creating Miro mind map node: ${error}\n`); return ServerResponse.error(error); } }
  • Zod schema defining the input parameters: boardId, data (content, parentId, style), and position.
    args: { boardId: z.string().describe("Unique identifier (ID) of the board where you want to create the node"), data: z.object({ content: z.string().describe("Text content for the mind map node"), parentId: z.string().optional().nullish().describe("ID of the parent node (if this is a child node)"), style: z.object({ fillColor: z.string().optional().nullish().describe("Fill color for the node"), textColor: z.string().optional().nullish().describe("Text color for the node") }).optional().nullish() }).describe("The content and style configuration of the mind map node"), position: z.object({ x: z.number().describe("X coordinate of the node"), y: z.number().describe("Y coordinate of the node") }).describe("Position of the node on the board") },
  • src/index.ts:186-186 (registration)
    Registers the createMindmapNodeTool with the ToolBootstrapper server.
    .register(createMindmapNodeTool)

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/k-jarzyna/mcp-miro'

If you have feedback or need assistance with the MCP directory API, please join our Discord server