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': {
    'notebook_path': {
      'type': 'string',
      'description': 'Absolute path to the .ipynb file',
    },
    'command': {
      'type': 'string',
      'enum': ['add', 'edit', 'delete', 'move'],
      'description': 'Operation to perform on the cell',
    },
    'cell_index': {
      'type': 'integer',
      'description': 'Zero-based index of the target cell',
    },
    'content': {
      'type': 'string',
      'description': 'New cell content (for add/edit)',
    },
    'cell_type': {
      'type': 'string',
      'enum': ['code', 'markdown', 'raw'],
      'description': 'Cell type (for add/edit, default: code)',
    },
    'target_index': {
      'type': 'integer',
      'description': 'Destination index (for move)',
    },
  },
  'required': ['notebook_path', 'command'],
};