filament_get_commands
Retrieve Filament artisan commands to manage admin panel development and operations within Laravel applications.
Instructions
Get Filament artisan commands
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "filament_get_commands"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | 5.x |
Implementation Reference
- src/tools/index.ts:148-153 (handler)The implementation and registration of the "filament_get_commands" tool. It retrieves artisan commands based on the requested Filament version from the `artisanCommands` data source.
server.tool("filament_get_commands", "Get Filament artisan commands", { version: versionSchema, }, async ({ version }) => { const commands = version === "4.x" ? artisanCommands.v4 : artisanCommands.v5; return { content: [{ type: "text", text: `# Filament ${version} Commands\n\n\`\`\`bash\n${commands.map(c => `${c.command} # ${c.description}`).join("\n")}\n\`\`\`` }] }; });