set_domain_note
Add notes or organize domains into folders to manage and track your domain portfolio effectively.
Instructions
Set a note and/or move a domain to a folder for organization.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name to update | |
| note | No | Note to attach to the domain | |
| folder | No | Folder name or ID to move the domain into |
Implementation Reference
- src/tools/settings.ts:219-258 (handler)The implementation of the `set_domain_note` tool handler, which uses the `client` service to set the note and/or folder for a domain.
server.tool( "set_domain_note", "Set a note and/or move a domain to a folder for organization.", { domain: z.string().describe("Domain name to update"), note: z.string().optional().describe("Note to attach to the domain"), folder: z.string().optional().describe("Folder name or ID to move the domain into"), }, async ({ domain, note, folder }) => { try { const results: unknown[] = []; if (note !== undefined) { results.push(await client.setNote(domain, note)); } if (folder !== undefined) { results.push(await client.setFolder(domain, folder)); } return { content: [ { type: "text" as const, text: JSON.stringify( results.length === 1 ? results[0] : results, null, 2 ), }, ], }; } catch (error) { const msg = error instanceof Error ? error.message : String(error); return { content: [ { type: "text" as const, text: `Failed to set domain note/folder: ${msg}` }, ], isError: true, }; } } );