list_allowed_directories
Retrieve the list of directories that are permitted for access within the Agentic Control Framework.
Instructions
List allowed dirs
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| random_string | Yes |
Implementation Reference
- src/filesystem_tools.js:732-738 (handler)Core implementation of listAllowedDirectories - returns the list of allowed directories as a success object. This is the actual function that executes the tool logic when 'list_allowed_directories' is called.
function listAllowedDirectories(allowedDirectories) { return { success: true, message: 'Allowed directories listed successfully', directories: allowedDirectories }; } - src/mcp/server.js:92-92 (registration)Tool registration/definition for 'list_allowed_directories' in the MCP server's tool list. Defines its name, description ('List allowed dirs'), and input schema (requires random_string).
{ name:'list_allowed_directories', description:'List allowed dirs', inputSchema:{ type:'object', properties:{ random_string:{type:'string'} }, required:['random_string'] } }, - src/mcp/server.js:244-246 (handler)Handler dispatch in the MCP server's main switch statement. Routes 'list_allowed_directories' requests to filesystemTools.listAllowedDirectories(allowedDirectories).
case 'list_allowed_directories': data = filesystemTools.listAllowedDirectories(allowedDirectories); break; - Testing utility that provides example arguments (random_string:'x') for generating MCP examples for the list_allowed_directories tool.
case 'list_allowed_directories': return { random_string:'x' }; - src/mcp/server.js:92-92 (schema)Input schema definition: type 'object', properties: random_string (type: string, required). Note: the handler doesn't use random_string from args, it only returns the allowedDirectories array.
{ name:'list_allowed_directories', description:'List allowed dirs', inputSchema:{ type:'object', properties:{ random_string:{type:'string'} }, required:['random_string'] } },