list_actions
Discover and filter available Automator actions by category to streamline automation workflows on macOS systems using the MCP server.
Instructions
List available Automator actions
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Filter by category (optional) |
Implementation Reference
- src/index.js:269-287 (handler)The handler function that implements the list_actions tool. It runs an AppleScript to retrieve Automator actions and returns a formatted list, optionally filtered by category.async listActions(category) { const script = ` tell application "Automator" get name of Automator actions end tell `; const result = await this.runAppleScript(script); const actions = result.content[0].text.split(', '); return { content: [ { type: 'text', text: `Available actions${category ? ` in ${category}` : ''}:\n${actions.join('\n')}`, }, ], }; }
- src/index.js:95-107 (registration)Tool registration in the listTools response, including name, description, and input schema.{ name: 'list_actions', description: 'List available Automator actions', inputSchema: { type: 'object', properties: { category: { type: 'string', description: 'Filter by category (optional)', }, }, }, },
- src/index.js:98-106 (schema)Input schema definition for the list_actions tool.inputSchema: { type: 'object', properties: { category: { type: 'string', description: 'Filter by category (optional)', }, }, },
- src/index.js:184-185 (registration)Dispatch in the CallToolRequest handler that routes list_actions calls to the listActions method.case 'list_actions': return await this.listActions(args.category);