(private config: Config)
| 267 | static readonly Name = 'list_directory'; |
| 268 | |
| 269 | constructor(private config: Config) { |
| 270 | super( |
| 271 | LSTool.Name, |
| 272 | 'ReadFolder', |
| 273 | 'Lists the names of files and subdirectories directly within a specified directory path. Can optionally ignore entries matching provided glob patterns.', |
| 274 | Kind.Search, |
| 275 | { |
| 276 | properties: { |
| 277 | path: { |
| 278 | description: |
| 279 | 'The absolute path to the directory to list (must be absolute, not relative)', |
| 280 | type: 'string', |
| 281 | }, |
| 282 | ignore: { |
| 283 | description: 'List of glob patterns to ignore', |
| 284 | items: { |
| 285 | type: 'string', |
| 286 | }, |
| 287 | type: 'array', |
| 288 | }, |
| 289 | file_filtering_options: { |
| 290 | description: |
| 291 | 'Optional: Whether to respect ignore patterns from .gitignore or .anusignore', |
| 292 | type: 'object', |
| 293 | properties: { |
| 294 | respect_git_ignore: { |
| 295 | description: |
| 296 | 'Optional: Whether to respect .gitignore patterns when listing files. Only available in git repositories. Defaults to true.', |
| 297 | type: 'boolean', |
| 298 | }, |
| 299 | respect_anus_ignore: { |
| 300 | description: |
| 301 | 'Optional: Whether to respect .anusignore patterns when listing files. Defaults to true.', |
| 302 | type: 'boolean', |
| 303 | }, |
| 304 | }, |
| 305 | }, |
| 306 | }, |
| 307 | required: ['path'], |
| 308 | type: 'object', |
| 309 | }, |
| 310 | ); |
| 311 | } |
| 312 | |
| 313 | /** |
| 314 | * Validates the parameters for the tool |
nothing calls this directly
no outgoing calls
no test coverage detected