pressable_add_site_domain
Add a custom domain to a WordPress site managed through Pressable, enabling you to connect your own web address for public access.
Instructions
Add a domain to a site.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| domain | Yes |
Implementation Reference
- tools/sites.js:190-202 (handler)The handler function for the pressable_add_site_domain tool, which performs a POST request to add a domain to a site.
name: 'pressable_add_site_domain', description: 'Add a domain to a site.', inputSchema: { type: 'object', properties: { id: { type: 'string' }, domain: { type: 'string' } }, required: ['id', 'domain'] }, handler: async (args) => { return await api.post(`/sites/${args.id}/domains`, { domain: args.domain }); }