> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: "getProjectXml"
sidebarTitle: "getProjectXml"
description: "Gets the project pages, design pages, and components XML, with information of the currently focused page or component. Framer is a website builder and design tool. This tool should ALWAYS be called at"
tag: "TOOL"
tagColor: "purple"
gridGap: 30
---

<Aside full>
  <RequestExample>
    ```json lines=false
    {
      "method": "tools/call",
      "params": {
        "name": "getProjectXml",
        "arguments": {}
      }
    }
    ```
  </RequestExample>
</Aside>

<MCPTool {...{"name":"getProjectXml","description":"Gets the project pages, design pages, and components XML, with information of the currently focused page or component.\n\nFramer is a website builder and design tool. This tool should ALWAYS be called at the start of any session involving a Framer project to understand the project structure.\n\nThis tool returns:\n- Project web pages, design pages, components, code files, and styles\n- Complete documentation for all available node attributes (opacity, width, layout, etc.)\n- Pre-built section components for quickly adding hero, pricing, footer, testimonials, and other sections\n- Currently focused page, design page, or component ID\n\nThis tool also returns the ID of the currently focused page, design page, or component node. When you create a ComponentInstance via updateXmlForNode, it will be inserted into this focused page or component.\n\nThe referenced nodeIds can be used with getNodeXml to get the XML of a specific page, design page, or component.\n\nEach element in the XML is usually referred as a \"node\" but the user could also refer to it as a \"layer\" or \"element\". The XML structure is similar to Framer's XML layers tree, names are extracted from the layers names given by the user.\n\nTo get insert URLs for components, use the getComponentInsertUrlAndTypes tool.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"annotations":{"readOnlyHint":true}}} />
