pub const LS_TOOL_SCHEMA: &str = r#"{
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "The absolute path to the directory to list"
},
"long_format": {
"type": "boolean",
"description": "Show detailed information (size, permissions, modified time). Defaults to false."
},
"include_hidden": {
"type": "boolean",
"description": "Include hidden files (starting with dot). Defaults to false."
},
"pattern": {
"type": "string",
"description": "Glob pattern to filter results (e.g., '*.rs')"
},
"sort_by": {
"type": "string",
"enum": ["name", "size", "modified"],
"description": "Field to sort by. Defaults to 'name'."
},
"reverse": {
"type": "boolean",
"description": "Reverse the sort order. Defaults to false."
},
"directories_first": {
"type": "boolean",
"description": "List directories before files. Defaults to true."
},
"limit": {
"type": "integer",
"description": "Maximum number of entries to return. Defaults to 1000."
}
},
"required": ["path"]
}"#;Expand description
Ls tool JSON schema constant.