Skip to main content
Glama

get_components

Retrieve components from local documents, team libraries, or remote team libraries in Figma. Specify source, team ID, and pagination for structured JSON output.

Instructions

Get components from the current document, a team library, or remote team libraries.

Returns:

  • content: Array of objects. Each object contains a type: "text" and a text field with the components info as JSON.

Input Schema

NameRequiredDescriptionDefault
afterNoA cursor for pagination, indicating where to start the next page.
page_sizeNoThe number of components to return per page.
sourceYesThe source to get components from: 'local' (current document), 'team' (team library), or 'remote' (remote team library).
team_idNoThe team ID to use when the source is 'team' or 'remote'.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "after": { "description": "A cursor for pagination, indicating where to start the next page.", "type": [ "string", "number" ] }, "page_size": { "description": "The number of components to return per page.", "type": "number" }, "source": { "description": "The source to get components from: 'local' (current document), 'team' (team library), or 'remote' (remote team library).", "enum": [ "local", "team", "remote" ], "type": "string" }, "team_id": { "description": "The team ID to use when the source is 'team' or 'remote'.", "type": "string" } }, "required": [ "source" ], "type": "object" }

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/amalinakurniasari/conduit'

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