Skip to main content
Glama

get_project_info

Retrieve project details and metadata for pixel art projects in the Piskel MCP Server to manage and export animations effectively.

Instructions

Get information about a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYesProject identifier

Implementation Reference

  • The handler function 'getProjectInfo' retrieves information about a specific project, including its dimensions, layer count, and layer names.
    private getProjectInfo(projectId: string): object {
      const piskel = this.getProject(projectId);
      return {
        projectId,
        name: piskel.getDescriptor().name,
        width: piskel.getWidth(),
        height: piskel.getHeight(),
        layerCount: piskel.getLayerCount(),
        frameCount: piskel.getFrameCount(),
        layers: Array.from({ length: piskel.getLayerCount() }, (_, i) => {
          const layer = piskel.getLayerAt(i);
          return {
            index: i,
            name: layer?.getName() ?? `Layer ${i}`,
            frameCount: layer?.size() ?? 0,
          };
        }),
      };
    }
    
    private listProjects(): object {
  • Registration of the 'get_project_info' tool, including its description and input schema.
    name: 'get_project_info',
    description: 'Get information about a project',
    inputSchema: {
      type: 'object',
      properties: {
        projectId: {
          type: 'string',
          description: 'Project identifier',
        },

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/yafeiaa/piskel-mcp-server'

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