list_sfcc_classes
Discover all available SFCC classes to explore the API scope and understand the class hierarchy for development tasks.
Instructions
Get a complete list of all available SFCC classes. Use this for exploration and discovery when you need to understand the full scope of SFCC APIs, or when you're new to SFCC development and want to see what's available. Good starting point for understanding the SFCC class hierarchy.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Handler specification defining the execution logic for list_sfcc_classes tool. Performs no validation (no params), executes client.getAvailableClasses(), and provides logging.list_sfcc_classes: { defaults: (args: ToolArguments) => args, validate: (_args: ToolArguments, _toolName: string) => { // No validation needed for list operation }, exec: async (args: ToolArguments, context: ToolExecutionContext) => { const client = context.docsClient as SFCCDocumentationClient; return client.getAvailableClasses(); }, logMessage: (_args: ToolArguments) => 'List classes', },
- src/core/tool-definitions.ts:85-92 (schema)Tool schema definition with name, description, and empty inputSchema (no required parameters).{ name: 'list_sfcc_classes', description: "Get a complete list of all available SFCC classes. Use this for exploration and discovery when you need to understand the full scope of SFCC APIs, or when you're new to SFCC development and want to see what's available. Good starting point for understanding the SFCC class hierarchy.", inputSchema: { type: 'object', properties: {}, }, },
- src/tool-configs/docs-tool-config.ts:6-12 (registration)Registration of list_sfcc_classes in DOC_TOOL_NAMES array, used by DocsToolHandler.canHandle() to determine if it can process this tool.export const DOC_TOOL_NAMES = [ 'get_sfcc_class_info', 'search_sfcc_classes', 'search_sfcc_methods', 'list_sfcc_classes', 'get_sfcc_class_documentation', ] as const;
- src/clients/docs-client.ts:72-77 (helper)Core helper method getAvailableClasses() that initializes documentation cache if needed and returns sorted list of all available SFCC class names.async getAvailableClasses(): Promise<string[]> { await this.initialize(); return Array.from(this.classCache.keys()) .sort() .map(className => ClassNameResolver.toOfficialFormat(className)); }
- src/core/server.ts:118-120 (registration)Server registration includes SFCC_DOCUMENTATION_TOOLS (containing list_sfcc_classes schema) in the list of available tools returned by ListToolsRequestHandler.tools.push(...SFCC_DOCUMENTATION_TOOLS); tools.push(...BEST_PRACTICES_TOOLS); tools.push(...SFRA_DOCUMENTATION_TOOLS);