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
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Project identifier |
Implementation Reference
- src/server/PiskelServer.ts:915-935 (handler)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 { - src/server/PiskelServer.ts:108-116 (registration)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', },