list_actions
Discover available automation actions for macOS, including AppleScript execution, workflow automation, and system tasks like email management and file organization.
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 primary handler function for the 'list_actions' tool. It executes an AppleScript to fetch names of Automator actions, parses the result, and returns a formatted text response.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)Registration of the 'list_actions' tool in the ListTools response, including its 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:184-185 (handler)Dispatch case in the CallToolRequestSchema handler that routes 'list_actions' calls to the listActions method.case 'list_actions': return await this.listActions(args.category);
- src/index.js:98-106 (schema)Input schema definition for the 'list_actions' tool, specifying an optional 'category' parameter.inputSchema: { type: 'object', properties: { category: { type: 'string', description: 'Filter by category (optional)', }, }, },