Skip to main content
Glama
Szowesgad

automator-mcp

by Szowesgad

create_workflow

Create new Automator workflows to automate macOS tasks like file organization, email sending, and system operations using AppleScript or JXA actions.

Instructions

Create a new Automator workflow file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName of the workflow
typeYesType of Automator document
actionsNoArray of action configurations

Implementation Reference

  • The handler function that implements the 'create_workflow' tool logic. It generates an AppleScript to create a new Automator workflow with the given name and type, executes it, and returns a success message.
    async createWorkflow(args) { // Simplified workflow creation - in real implementation would use Automator's plist format const workflowScript = ` tell application "Automator" make new workflow set name of result to "${args.name}" save result end tell `; await this.runAppleScript(workflowScript); return { content: [ { type: 'text', text: `Created ${args.type} workflow: ${args.name}`, }, ], }; }
  • src/index.js:65-94 (registration)
    Registration of the 'create_workflow' tool in the listTools response, including name, description, and input schema definition.
    { name: 'create_workflow', description: 'Create a new Automator workflow file', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Name of the workflow', }, type: { type: 'string', enum: ['workflow', 'application', 'service', 'quick-action'], description: 'Type of Automator document', }, actions: { type: 'array', description: 'Array of action configurations', items: { type: 'object', properties: { action: { type: 'string' }, parameters: { type: 'object' }, }, }, }, }, required: ['name', 'type'], }, },
  • Dispatch handler case that routes 'create_workflow' tool calls to the createWorkflow method.
    case 'create_workflow': return await this.createWorkflow(args);

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