pressable_list_collaborators
View collaborators for Pressable WordPress accounts or sites to manage team access and permissions.
Instructions
List all collaborators for an account or specific site.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pressable_list_collaborators"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | No | Optional site ID to filter by |
Implementation Reference
- tools/collaborators.js:13-16 (handler)The handler function for pressable_list_collaborators tool which fetches collaborators from the API.
handler: async (args) => { const path = args.site_id ? `/sites/${args.site_id}/collaborators` : '/collaborators'; return await api.get(path); } - tools/collaborators.js:4-17 (registration)The registration block for the pressable_list_collaborators tool.
{ name: 'pressable_list_collaborators', description: 'List all collaborators for an account or specific site.', inputSchema: { type: 'object', properties: { site_id: { type: 'string', description: 'Optional site ID to filter by' } } }, handler: async (args) => { const path = args.site_id ? `/sites/${args.site_id}/collaborators` : '/collaborators'; return await api.get(path); } },