Skip to content
Download

Build a Reusable Interaction Panel for Mac Workflows

Bring frequently used app actions, inputs, and results into a small native panel with Cursor Crane. Describe the controls you want to an AI coding assistant and let it generate an Interaction Panel script.

Open Settings > Scripts and locate the selected script folder. Cursor Crane generates AGENTS.md and .cursorcrane/cursorcrane.d.ts there to help AI assistants write scripts.

Choose the app and actions you want in the panel. Have the target window open, and be ready to describe its controls or provide a screenshot.

  1. Open the script folder in your AI coding tool, or give an assistant with local file access its path.

  2. Describe the target app, the panel’s controls, and what each should do. For example:

    Read AGENTS.md and .cursorcrane/cursorcrane.d.ts in this folder. Create a Cursor Crane Interaction Panel for [app name]. I want to enter a search term, click Search to fill the app’s search field and start the search, then see a status message in the panel. Save the script in this folder. Ask me if you need details about the target window or its controls.

  3. Provide the app details or screenshots the assistant needs to identify the controls. Let it generate the script using the local instructions and API definitions.

  4. Refresh the list in Settings > Scripts, assign the script a command sequence or shortcut, and run it with the target app open.

  5. Try each action and check the result in the app. Tell the assistant what needs to change, then refresh the script list and try the revised panel.

You can use the same process to combine other app actions into a panel. See Using Scripts for loading and running it.

The target app needs to expose the controls the script operates on. If an action cannot find its target, tell the assistant which window was open and what happened so it can adjust the script. Verify the app’s actual result as well as the panel’s status message.