inputSchema property

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

JSON Schema for the tool's input parameters.

Implementation

@override
Map<String, dynamic> get inputSchema => {
  'type': 'object',
  'properties': {
    'command': {
      'type': 'string',
      'description': 'The PowerShell command to execute',
    },
    'work_dir': {
      'type': 'string',
      'description':
          'Working directory for command execution. '
          'Uses current directory if not specified.',
    },
    'timeout': {
      'type': 'number',
      'description':
          'Timeout in milliseconds (max 600000 / 10 minutes). '
          'Default is 120000 (2 minutes).',
    },
    'execution_policy': {
      'type': 'string',
      'enum': [
        'Bypass',
        'Restricted',
        'AllSigned',
        'RemoteSigned',
        'Unrestricted',
        'Undefined',
      ],
      'description':
          'PowerShell execution policy for this command. '
          'Default depends on system configuration.',
    },
  },
  'required': ['command'],
  'additionalProperties': false,
};