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': 'The absolute path to the Jupyter notebook file to edit',
    },
    'command': {
      'type': 'string',
      'enum': ['add', 'edit', 'delete', 'move'],
      'description': 'The operation to perform on the cell',
    },
    'cell_index': {
      'type': 'integer',
      'description':
          'The 0-indexed cell number to operate on. For add, '
          'the new cell is inserted at this position.',
    },
    'cell_type': {
      'type': 'string',
      'enum': ['code', 'markdown', 'raw'],
      'description':
          'The type of the cell. Defaults to code for add. '
          'For edit, changes the cell type if provided.',
    },
    'source': {
      'type': 'string',
      'description': 'The new source content for the cell',
    },
    'new_index': {
      'type': 'integer',
      'description': 'Destination index for move operations',
    },
  },
  'required': ['notebook_path', 'command'],
  'additionalProperties': false,
};