superdesign_list
List all designs in your workspace to manage and organize UI assets, enabling efficient wireframing, component creation, and design workflows within the Superdesign MCP Server.
Instructions
List all created designs in the workspace
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_path | No | Workspace path (defaults to current directory) |
Implementation Reference
- src/index.ts:2267-2308 (handler)The main handler function for the superdesign_list tool. It lists all design files (.html, .svg) in the design_iterations directory and JSON files in design_system directory within the superdesign workspace, formats them into a text response.case "superdesign_list": { const { workspace_path } = ListDesignsSchema.parse(args); try { const superdesignDir = getSuperdeignDirectory(workspace_path); const designIterationsDir = path.join(superdesignDir, 'design_iterations'); const designSystemDir = path.join(superdesignDir, 'design_system'); const designFiles = await glob('*.{html,svg}', { cwd: designIterationsDir }); const systemFiles = await glob('*.json', { cwd: designSystemDir }); let result = `Superdesign workspace: ${superdesignDir}\n\n`; if (designFiles.length > 0) { result += `Design iterations (${designFiles.length}):\n`; designFiles.forEach(file => { result += ` - ${file}\n`; }); } else { result += "No design iterations found.\n"; } result += "\n"; if (systemFiles.length > 0) { result += `Design systems (${systemFiles.length}):\n`; systemFiles.forEach(file => { result += ` - ${file}\n`; }); } else { result += "No design systems found.\n"; } return { content: [{ type: "text", text: result }], }; } catch (error: any) { return { content: [{ type: "text", text: `Error listing designs: ${error.message}` }], }; } }
- src/index.ts:41-43 (schema)Zod input schema for the superdesign_list tool, defining an optional workspace_path parameter.const ListDesignsSchema = z.object({ workspace_path: z.string().optional().describe("Workspace path (defaults to current directory)") });
- src/index.ts:1991-2000 (registration)Registration of the superdesign_list tool in the listTools response, including name, description, and inputSchema matching the Zod schema.{ name: "superdesign_list", description: "List all created designs in the workspace", inputSchema: { type: "object", properties: { workspace_path: { type: "string", description: "Workspace path (defaults to current directory)" } }, }, },