filament_list_components
Lists all available components within a specific Filament category to help developers find and implement UI elements for admin panels.
Instructions
List all components in a category
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | Yes | ||
| version | No | 5.x |
Implementation Reference
- src/tools/index.ts:72-80 (handler)The handler for 'filament_list_components' retrieves component lists from either Filament V4 or V5 references based on the provided version and category.
server.tool("filament_list_components", "List all components in a category", { category: z.enum(["forms", "tables", "infolists", "actions", "schemas", "support"]), version: versionSchema, }, async ({ category, version }) => { const reference = version === "4.x" ? filamentV4Reference : filamentV5Reference; const found = reference.categories.find(c => c.slug.toLowerCase() === category.toLowerCase()); if (!found) return { content: [{ type: "text", text: `Category "${category}" not found.` }] }; return { content: [{ type: "text", text: `# ${found.name} Components\n\n${found.components.map(c => `- **${c.name}**: ${c.description}`).join("\n")}` }] }; });