inputSchema property

  1. @override
Map<String, dynamic> get inputSchema
override

Input schema (JSON Schema format)

Defines the structure of parameters that this tool accepts. Follows JSON Schema specification (draft-07 or later).

Implementation

@override
Map<String, dynamic> get inputSchema => McpSchema.inputSchema(
  type: 'object',
  properties: {
    'directory': McpSchema.string(description: 'Directory to scan (relative to project root)'),
    'depth': McpSchema.integer(
      description: 'Maximum depth to scan',
      defaultValue: 3,
    ),
    'include_files': McpSchema.boolean(
      description: 'Include files in output (not just directories)',
      defaultValue: true,
    ),
    'exclude_patterns': McpSchema.array(
      items: McpSchema.string(description: 'File or directory pattern to exclude'),
      description: 'Patterns to exclude (e.g., "node_modules", ".git")',
    ),
  },
);