Workspace Roots
list_rootsList the server's accessible roots and read-only directories to identify allowed paths or recover after an ACCESS_DENIED error before browsing files.
Instructions
List roots this server can access and its read-only directories. Use for allowed paths or after ACCESS_DENIED. Do not use it to browse; use list, find_files, or stat instead. Accepted grants add roots; call again after one. Outside paths prompt a grant only on elicitation clients, never for home, system paths, or anything outside FS_ROOT_BOUNDARY. Returns absolute { roots, readOnlyDirs (writes, moves, deletes refused), hint? when roots is empty }.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_roots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||