Skip to main content
Glama
ArchimedesCrypto

Figma MCP Server with Chunking

list_files

Retrieve and organize files within a Figma project or team using accurate file listing, ensuring efficient management of design assets.

Instructions

List files in a project or team

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idNoProject ID to list files from
team_idNoTeam ID to list files from

Implementation Reference

  • MCP server handler for the 'list_files' tool. It extracts arguments, calls the Figma client's listFiles method, and returns the result as JSON text content.
    case 'list_files': {
      const args = request.params.arguments as unknown as ListFilesArgs;
      console.debug('[MCP Debug] Listing files', args);
      const data = await this.figmaClient.listFiles(args);
      return {
        content: [{ type: 'text', text: JSON.stringify(data, null, 2) }],
      };
    }
  • TypeScript interface defining the input schema for list_files arguments (project_id and team_id optional). Matches the JSON inputSchema in tool registration.
    interface ListFilesArgs {
      project_id?: string;
      team_id?: string;
    }
  • src/index.ts:147-163 (registration)
    Tool registration in the ListToolsRequestHandler response. Defines name, description, and JSON inputSchema for the list_files tool.
    {
      name: 'list_files',
      description: 'List files in a project or team',
      inputSchema: {
        type: 'object',
        properties: {
          project_id: {
            type: 'string',
            description: 'Project ID to list files from'
          },
          team_id: {
            type: 'string',
            description: 'Team ID to list files from'
          }
        }
      }
    },
  • Implementation of listFiles method in ChunkedFigmaClient class. Performs the actual HTTP GET request to Figma's /files endpoint with optional project_id or team_id parameters.
    async listFiles(params: { project_id?: string; team_id?: string }) {
      try {
        console.debug('[MCP Debug] Listing files with params:', params);
        const response = await this.client.get('/files', { params });
        return response.data;
      } catch (error) {
        console.error('[MCP Error] Failed to list files:', error);
        throw error;
      }
    }

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Related 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/ArchimedesCrypto/figma-mcp-chunked'

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