pressable_list_sites
Retrieve and filter your WordPress sites from your Pressable account, with options for pagination and tag-based organization.
Instructions
Get a list of sites belonging to your account. Sites can be filtered by tag name or paginated.
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_sites"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paginate | No | Request a paginated response | |
| per_page | No | Amount of sites returned in a response | |
| page | No | Page of the response | |
| tag | No | Filter sites by tag name |
Implementation Reference
- tools/sites.js:16-18 (handler)The handler function that executes the logic for 'pressable_list_sites' by calling the sites API.
handler: async (args) => { return await api.get('/sites', args); } - tools/sites.js:7-15 (schema)The input schema definition for 'pressable_list_sites', defining the expected parameters.
inputSchema: { type: 'object', properties: { paginate: { type: 'boolean', description: 'Request a paginated response' }, per_page: { type: 'integer', description: 'Amount of sites returned in a response' }, page: { type: 'integer', description: 'Page of the response' }, tag: { type: 'string', description: 'Filter sites by tag name' } } },