confirm_marketplace_action
Confirm or reject domain marketplace actions from Afternic or Sedo integrations to manage domain transactions.
Instructions
Confirm or reject a marketplace action from Afternic or Sedo integration.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform | Yes | Marketplace platform: 'afternic' or 'sedo' | |
| domain | Yes | Domain name | |
| action | Yes | Action to confirm (e.g., 'accept', 'reject') |
Implementation Reference
- src/tools/marketplace.ts:439-470 (handler)Implementation and registration of the 'confirm_marketplace_action' tool.
server.tool( "confirm_marketplace_action", "Confirm or reject a marketplace action from Afternic or Sedo integration.", { platform: z .enum(["afternic", "sedo"]) .describe("Marketplace platform: 'afternic' or 'sedo'"), domain: z.string().describe("Domain name"), action: z.string().describe("Action to confirm (e.g., 'accept', 'reject')"), }, async ({ platform, domain, action }) => { try { const result = platform === "afternic" ? await client.setAfternicConfirmAction(domain, action) : await client.setSedoConfirmAction(domain, action); 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: `Marketplace confirmation failed: ${msg}` }, ], isError: true, }; } } );