pressable_list_themes
Retrieve available WordPress themes for a specific Pressable site to manage site appearance and functionality.
Instructions
Get a list of themes for a specific site.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- tools/content.js:39-41 (handler)The handler for pressable_list_themes that calls the API to get themes for a site.
handler: async (args) => { return await api.get(`/sites/${args.id}/themes`); } - tools/content.js:34-38 (schema)Input schema for pressable_list_themes tool.
inputSchema: { type: 'object', properties: { id: { type: 'string' } }, required: ['id'] }, - tools/content.js:31-42 (registration)Registration of the pressable_list_themes tool within the contentTools array.
{ name: 'pressable_list_themes', description: 'Get a list of themes for a specific site.', inputSchema: { type: 'object', properties: { id: { type: 'string' } }, required: ['id'] }, handler: async (args) => { return await api.get(`/sites/${args.id}/themes`); } },