pressable_get_sftp_users
Retrieve SFTP user accounts for a WordPress site to manage file access and permissions through the Pressable API.
Instructions
Get a list of SFTP users for a specific site.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- tools/server.js:12-14 (handler)The handler for the 'pressable_get_sftp_users' tool, which makes an API request to fetch SFTP users for a site.
handler: async (args) => { return await api.get(`/sites/${args.id}/sftp-users`); } - tools/server.js:4-15 (registration)The registration of the 'pressable_get_sftp_users' tool definition, including its schema and handler.
{ name: 'pressable_get_sftp_users', description: 'Get a list of SFTP users for a specific site.', inputSchema: { type: 'object', properties: { id: { type: 'string' } }, required: ['id'] }, handler: async (args) => { return await api.get(`/sites/${args.id}/sftp-users`); } },