localnest_list_roots
List configured local roots available to the LocalNest MCP server for AI agent codebase access and file discovery.
Instructions
List configured local roots available to this MCP server.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| response_format | No | json |
Implementation Reference
- src/mcp/tools/retrieval.js:69-86 (handler)Implementation and registration of the localnest_list_roots tool.
registerJsonTool( 'localnest_list_roots', { title: 'List Roots', description: 'List configured local roots available to this MCP server.', inputSchema: { limit: z.number().int().min(1).max(1000).default(100), offset: z.number().int().min(0).default(0) }, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } }, async ({ limit, offset }) => paginateItems(workspace.listRoots(), limit, offset) );