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: {
    'pattern': McpSchema.string(
      description: 'Glob pattern to match files (e.g., "*.dart", "**/*_endpoint.dart")',
    ),
    'path': McpSchema.string(description: 'Directory to search in (relative to project root)'),
    'exclude_patterns': McpSchema.array(
      items: McpSchema.string(description: 'Pattern to exclude'),
      description: 'Patterns to exclude (e.g., "generated", "*.g.dart")',
    ),
    'max_results': McpSchema.integer(
      description: 'Maximum number of results to return',
      defaultValue: 100,
    ),
  },
  required: ['pattern'],
);