pressable_get_php_error_logs
Retrieve PHP error logs for WordPress sites to identify and resolve issues affecting site functionality.
Instructions
Get PHP error logs for a site.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- tools/server.js:24-26 (handler)Handler function for the 'pressable_get_php_error_logs' tool which makes an API call to fetch PHP error logs.
handler: async (args) => { return await api.get(`/sites/${args.id}/php-error-logs`); } - tools/server.js:16-27 (registration)Tool registration and definition for 'pressable_get_php_error_logs'.
{ name: 'pressable_get_php_error_logs', description: 'Get PHP error logs for a site.', inputSchema: { type: 'object', properties: { id: { type: 'string' } }, required: ['id'] }, handler: async (args) => { return await api.get(`/sites/${args.id}/php-error-logs`); } },