Skip to main content
Glama
Szowesgad

automator-mcp

by Szowesgad

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
NameRequiredDescriptionDefault
categoryNoFilter by category (optional)

Implementation Reference

  • 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)', }, }, }, },
  • Dispatch case in the CallToolRequestSchema handler that routes 'list_actions' calls to the listActions method.
    case 'list_actions': return await this.listActions(args.category);
  • 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)', }, }, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Szowesgad/automator-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server