list_folders
View all domain folders in your Dynadot account to organize and manage your registered domains efficiently.
Instructions
List all folders in the Dynadot account.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/folder.ts:77-99 (handler)The handler for "list_folders" tool, which calls `client.listFolders()` and returns the result as JSON.
server.tool( "list_folders", "List all folders in the Dynadot account.", {}, async () => { try { const result = await client.listFolders(); return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; } catch (error) { const msg = error instanceof Error ? error.message : String(error); return { content: [ { type: "text" as const, text: `Failed to list folders: ${msg}` }, ], isError: true, }; } } ); - src/tools/folder.ts:15-18 (registration)The function that registers the folder-related tools, including "list_folders".
export function registerFolderTools( server: McpServer, client: DynadotClient ): void {