inputSchema property
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: {
'file_path': McpSchema.string(
description: 'Path to the file (can be relative to project root or absolute)',
),
'encoding': McpSchema.string(
description: 'File encoding',
defaultValue: 'utf-8',
),
},
required: ['file_path'],
);