pressable_add_collaborator
Add a collaborator to a WordPress site by specifying the site ID and collaborator email address.
Instructions
Add a collaborator to a site.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | ||
| Yes |
Implementation Reference
- tools/collaborators.js:29-31 (handler)The handler function for 'pressable_add_collaborator' which calls the API to add a collaborator to a site.
handler: async (args) => { return await api.post(`/sites/${args.site_id}/collaborators`, { email: args.email }); } - tools/collaborators.js:21-28 (schema)The input schema for 'pressable_add_collaborator' defining site_id and email as required arguments.
inputSchema: { type: 'object', properties: { site_id: { type: 'string' }, email: { type: 'string' } }, required: ['site_id', 'email'] }, - tools/collaborators.js:18-33 (registration)The registration block for the 'pressable_add_collaborator' tool.
{ name: 'pressable_add_collaborator', description: 'Add a collaborator to a site.', inputSchema: { type: 'object', properties: { site_id: { type: 'string' }, email: { type: 'string' } }, required: ['site_id', 'email'] }, handler: async (args) => { return await api.post(`/sites/${args.site_id}/collaborators`, { email: args.email }); } } ];