Alter Action Trigger
Trigger Alter actions via x-callback-urls from Clawdbot or the command line.
Quick Start
# Trigger an action directly
node index.js trigger ask-anything --input "What is AI?"
# Find actions with natural language
node index.js find "summarize video"
# List all actions in a category
node index.js list --category writing
URL Format
All Alter actions use the x-callback-url format:
alter://action/{action-id}?input={encoded-text}¶m={value}
Functions
triggerAction(actionId, input, params)
Triggers an Alter action via x-callback-url.
findActions(query)
Finds actions matching a natural language query.
listActions(category)
Lists all actions, optionally filtered by category.
getActionInfo(actionId)
Returns detailed information about a specific action.
buildCallbackUrl(actionId, input, params)
Builds an x-callback-url without executing it.
Available Actions Reference
📝 Writing Actions
| Action ID |
Name |
Description |
Parameters |
analyze-prose |
Analyze Prose |
Evaluates writing for quality with ratings and recommendations |
None |
aphorisms |
Aphorisms |
Finds and prints existing, known aphorisms |
None |
change-tone |
Change the Tone |
Changes text tone while preserving meaning |
tone: Assertive, Friendly, Informal, Professional, Simple and direct |
correct-grammar |
Correct Grammar & Spelling |
Fixes grammar and spelling errors |
None |
cut-filler-words |
Cut filler words |
Removes filler words for confident text |
None |
fill-in |
Fill in |
Completes partial text intelligently |
None |
improve-writing |
Improve Writing |
Refines text for clarity, coherence, grammar |
None |
lengthen |
Lengthen |
Expands text with additional details |
None |
poll |
Poll |
Generates engaging polls |
None |
rewrite |
Rewrite |
Rewrites text with fresh perspectives |
None |
shorten |
Shorten |
Condenses text while retaining essentials |
None |
write-essay |
Write essay |
Crafts well-structured essays |
input: Topic/Instructions |
💻 Code Actions
| Action ID |
Name |
Description |
Parameters |
act-code |
Act On Code |
Modifies and improves code |
input: Instructions |
document |
Document code |
Documents code with comments |
None |
explain-code |
Explain Code |
Explains code and documentation |
None |
fill-code |
Fill Code |
Fills in missing code |
None |
fix-code |
Fix Code |
Fixes code errors |
input: Error message |
language-gpt |
Language-GPT |
Expert insights for programming languages |
input: Question |
suggest-improvements |
Suggest code improvements |
Analyzes code for enhancements |
None |
transcode |
Transcode to other language |
Converts code between languages |
language: Target language |
🌐 Translation Actions
| Action ID |
Name |
Description |
Parameters |
translate |
Translate |
Translates text between languages |
language: Arabic, Chinese, Dutch, English, Filipino, French, German, Indonesian, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Vietnamese |
translate-to-english |
Translate to English |
Translates any language to English |
None |
translate-to-french |
Translate to French |
Translates any language to French |
None |
translate-to-spanish |
Translate to Spanish |
Translates any language to Spanish |
None |
📊 Summarize Actions
| Action ID |
Name |
Description |
Parameters |
summarize-detailed |
Detailed |
Comprehensive summary with overview, points, takeaways |
None |
summarize-micro |
Micro |
Concise, focused summaries |
None |
summarize-newsletter |
Newsletter Summary |
Extracts key newsletter updates |
None |
🔍 Extract Actions
| Action ID |
Name |
Description |
Parameters |
extract-mails |
Mails |
Extracts email addresses |
None |
extract-names |
Names |
Extracts personal names |
None |
extract-any |
People/Companies |
Extracts personal/business info |
None |
extract-predictions |
Predictions |
Extracts predictions |
None |
extract-recommendations |
Recommendations |
Extracts recommendations |
None |
extract-todo |
Tasks |
Extracts actionable tasks |
None |
extract-trends |
Trends |
Extracts trends |
None |
extract-wisdom |
Extract Wisdom |
Extracts insights and interesting info |
None |
📋 Format Actions
| Action ID |
Name |
Description |
Parameters |
format-to-bullet-list |
Bullet list |
Converts text to bullet list |
None |
format-to-markdown-checklist |
Markdown checklist |
Converts text to checklist |
None |
format-to-markdown-table |
Markdown table |
Converts text to table |
None |
format-to-numbered-list |
Numbered list |
Converts text to numbered list |
None |
sort-az |
Sort A-Z |
Sorts alphabetically ascending |
None |
sort-za |
Sort Z-A |
Sorts alphabetically descending |
None |
🎨 Create Actions
| Action ID |
Name |
Description |
Parameters |
create-alter-action |
Alter Action |
Creates Alter Actions |
input: Instructions |
create-charts |
Charts |
Creates Recharts visualizations |
input: Instructions |
create-diagrams |
Diagrams |
Generates Mermaid diagrams |
input: Instructions |
create-html |
HTML page |
Creates HTML pages |
input: Instructions |
create-images |
Images |
Generates AI images (Flux, Ideogram) |
input: Instructions |
create-maps |
Maps |
Creates LeafletJS maps |
input: Instructions |
create-presentations |
HTML Presentations |
Generates slide presentations |
input: Instructions |
create-react-app |
Tailwind React App |
Creates React apps |
input: Instructions |
🔎 Explain Actions
| Action ID |
Name |
Description |
Parameters |
analyze-paper |
Analyze Paper |
Analyzes research papers |
None |
explain-selection |
Explain |
Explains complex concepts simply |
None |
hidden-message |
Hidden message |
Uncovers hidden messages in text |
None |
🔀 Git Actions
| Action ID |
Name |
Description |
Parameters |
git-commit |
Commit message |
Generates commit messages |
None |
git-review |
Review |
Reviews code changes |
None |
git-summarize |
Summarize |
Summarizes Git commits |
None |
pull-request |
Pull Request |
Creates PR descriptions |
None |
🧠 Co-Intelligence Actions (Expert GPTs)
| Action ID |
Name |
Description |
Parameters |
business-strategist-gpt |
Business Strategy Expert |
Business strategy advice |
input: Question |
children-educator |
Children Educator |
Early childhood education guidance |
input: Question |
e-commerce-strategist-gpt |
E-commerce Strategy Expert |
E-commerce strategy advice |
input: Question |
hrmanager-gpt |
HR Manager Expert |
HR management guidance |
input: Question |
marketer-gpt |
Marketing Expert |
Marketing strategy advice |
input: Question |
mental-models-gpt |
Mental Models Expert |
Mental models for decision-making |
input: Question |
software-architect-gpt |
Software Architect Expert |
Software architecture guidance |
input: Question |
💬 General Actions
| Action ID |
Name |
Description |
Parameters |
ask-anything |
Ask Anything |
Open-ended AI conversation |
input: Instructions |
ask-web |
Search the web |
Web search with sources |
input: Question |
📧 Email Actions
| Action ID |
Name |
Description |
Parameters |
mail-draft |
Mail Draft |
Creates email drafts |
input: Instructions |
mail-multi-summary |
Multiconversation summary |
Summarizes multiple email threads |
None |
mail-reply |
Mail Reply |
Generates email replies |
answerType: Any updates?, Doesn't work, I don't know, etc. |
mail-summary |
Thread summary |
Summarizes email threads |
None |
📱 Social Media Actions
| Action ID |
Name |
Description |
Parameters |
linkedin-post |
Linkedin Post |
Creates LinkedIn posts |
None |
linkedin-reply |
Linkedin Reply |
Generates LinkedIn replies |
None |
twitter-post |
Twitter Post |
Creates engaging tweets |
None |
twitter-reply |
Twitter Reply |
Generates tweet replies |
None |
twitter-thread |
Twitter Thread |
Creates Twitter threads |
None |
📺 YouTube Actions
| Action ID |
Name |
Description |
Parameters |
youtube-hidden-message |
Youtube hidden message |
Analyzes videos for hidden messages |
None |
youtube-summarize-detailed |
Youtube detailed Summary |
Comprehensive video summaries |
None |
youtube-summarize-micro |
Youtube micro summary |
Quick video summaries |
None |
🎯 Other Actions
| Action ID |
Name |
Description |
Parameters |
create-a-keynote-deck |
Generate Keynote slides |
Generates Keynote presentations |
input: Instructions |
edit-a-keynote-deck |
Edit Keynote slide |
Edits Keynote slides |
input: Instructions |
translate-the-deck |
Translate the deck |
Translates Keynote presentations |
language: Target language |
write-presenter-notes |
Write presenter notes |
Creates presenter notes |
None |
meeting-scribe |
Meeting Report |
Converts transcripts to notes |
None |
spreadsheet-formula |
Spreadsheet Formula |
Creates spreadsheet formulas |
input: Instructions |
user-story |
User Story |
Creates agile user stories |
None |
Categories
| Category |
Description |
Action Count |
code |
Programming and development |
8 |
writing |
Text editing and creation |
12 |
translate |
Language translation |
4 |
summarize |
Content summarization |
2 |
extract |
Information extraction |
7 |
format |
Text formatting |
6 |
create |
Content creation |
8 |
explain |
Explanation and analysis |
4 |
git |
Git version control |
4 |
co-intelligences |
Expert AI assistants |
7 |
Usage Examples
From Clawdbot
// Trigger ask-anything with a question
const { triggerAction } = require('./index.js');
triggerAction('ask-anything', 'What is machine learning?');
// Find actions for "translate text"
const { findActions } = require('./index.js');
const matches = findActions('translate text');
console.log(matches[0]); // { id: 'translate', name: 'Translate', ... }
// Build URL without triggering
const { buildCallbackUrl } = require('./index.js');
const url = buildCallbackUrl('translate', null, { language: 'French' });
// -> alter://action/translate?language=French
From Command Line
# Ask a question
node index.js trigger ask-anything --input "Explain quantum computing"
# Translate with specific language
node index.js trigger translate --param "language=Japanese"
# Fix code with error message
node index.js trigger fix-code --input "TypeError: undefined is not a function"
# Change tone
node index.js trigger change-tone --param "tone=Professional"
# Search for actions
node index.js find "create a chart"
# Get action details
node index.js info create-images
Notes
- Actions operate on currently selected text/files in Alter
- Parameters are URL-encoded automatically
- Actions with
hasParameters: false typically need selected content in Alter
- The
open command is used on macOS to trigger x-callback-urls
1---2name: alter-action-trigger3description: Trigger Alter macOS app actions via x-callback-urls. Catalog of 84+ actions including ask-anything, translate, summarize, grammar correction, and more.4---5
6# Alter Action Trigger
7
8Trigger Alter actions via x-callback-urls from Clawdbot or the command line.
9
10## Quick Start
11
12```bash
13# Trigger an action directly
14node index.js trigger ask-anything --input "What is AI?"
15
16# Find actions with natural language
17node index.js find "summarize video"
18
19# List all actions in a category
20node index.js list --category writing
21```
22
23## URL Format
24
25All Alter actions use the x-callback-url format:
26```
27alter://action/{action-id}?input={encoded-text}¶m={value}
28```
29
30## Functions
31
32### `triggerAction(actionId, input, params)`
33Triggers an Alter action via x-callback-url.
34
35### `findActions(query)`
36Finds actions matching a natural language query.
37
38### `listActions(category)`
39Lists all actions, optionally filtered by category.
40
41### `getActionInfo(actionId)`
42Returns detailed information about a specific action.
43
44### `buildCallbackUrl(actionId, input, params)`
45Builds an x-callback-url without executing it.
46
47---
48
49## Available Actions Reference
50
51### 📝 Writing Actions
52
53| Action ID | Name | Description | Parameters |
54|-----------|------|-------------|------------|
55| `analyze-prose` | Analyze Prose | Evaluates writing for quality with ratings and recommendations | None |
56| `aphorisms` | Aphorisms | Finds and prints existing, known aphorisms | None |
57| `change-tone` | Change the Tone | Changes text tone while preserving meaning | `tone`: Assertive, Friendly, Informal, Professional, Simple and direct |
58| `correct-grammar` | Correct Grammar & Spelling | Fixes grammar and spelling errors | None |
59| `cut-filler-words` | Cut filler words | Removes filler words for confident text | None |
60| `fill-in` | Fill in | Completes partial text intelligently | None |
61| `improve-writing` | Improve Writing | Refines text for clarity, coherence, grammar | None |
62| `lengthen` | Lengthen | Expands text with additional details | None |
63| `poll` | Poll | Generates engaging polls | None |
64| `rewrite` | Rewrite | Rewrites text with fresh perspectives | None |
65| `shorten` | Shorten | Condenses text while retaining essentials | None |
66| `write-essay` | Write essay | Crafts well-structured essays | `input`: Topic/Instructions |
67
68### 💻 Code Actions
69
70| Action ID | Name | Description | Parameters |
71|-----------|------|-------------|------------|
72| `act-code` | Act On Code | Modifies and improves code | `input`: Instructions |
73| `document` | Document code | Documents code with comments | None |
74| `explain-code` | Explain Code | Explains code and documentation | None |
75| `fill-code` | Fill Code | Fills in missing code | None |
76| `fix-code` | Fix Code | Fixes code errors | `input`: Error message |
77| `language-gpt` | Language-GPT | Expert insights for programming languages | `input`: Question |
78| `suggest-improvements` | Suggest code improvements | Analyzes code for enhancements | None |
79| `transcode` | Transcode to other language | Converts code between languages | `language`: Target language |
80
81### 🌐 Translation Actions
82
83| Action ID | Name | Description | Parameters |
84|-----------|------|-------------|------------|
85| `translate` | Translate | Translates text between languages | `language`: Arabic, Chinese, Dutch, English, Filipino, French, German, Indonesian, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Vietnamese |
86| `translate-to-english` | Translate to English | Translates any language to English | None |
87| `translate-to-french` | Translate to French | Translates any language to French | None |
88| `translate-to-spanish` | Translate to Spanish | Translates any language to Spanish | None |
89
90### 📊 Summarize Actions
91
92| Action ID | Name | Description | Parameters |
93|-----------|------|-------------|------------|
94| `summarize-detailed` | Detailed | Comprehensive summary with overview, points, takeaways | None |
95| `summarize-micro` | Micro | Concise, focused summaries | None |
96| `summarize-newsletter` | Newsletter Summary | Extracts key newsletter updates | None |
97
98### 🔍 Extract Actions
99
100| Action ID | Name | Description | Parameters |
101|-----------|------|-------------|------------|
102| `extract-mails` | Mails | Extracts email addresses | None |
103| `extract-names` | Names | Extracts personal names | None |
104| `extract-any` | People/Companies | Extracts personal/business info | None |
105| `extract-predictions` | Predictions | Extracts predictions | None |
106| `extract-recommendations` | Recommendations | Extracts recommendations | None |
107| `extract-todo` | Tasks | Extracts actionable tasks | None |
108| `extract-trends` | Trends | Extracts trends | None |
109| `extract-wisdom` | Extract Wisdom | Extracts insights and interesting info | None |
110
111### 📋 Format Actions
112
113| Action ID | Name | Description | Parameters |
114|-----------|------|-------------|------------|
115| `format-to-bullet-list` | Bullet list | Converts text to bullet list | None |
116| `format-to-markdown-checklist` | Markdown checklist | Converts text to checklist | None |
117| `format-to-markdown-table` | Markdown table | Converts text to table | None |
118| `format-to-numbered-list` | Numbered list | Converts text to numbered list | None |
119| `sort-az` | Sort A-Z | Sorts alphabetically ascending | None |
120| `sort-za` | Sort Z-A | Sorts alphabetically descending | None |
121
122### 🎨 Create Actions
123
124| Action ID | Name | Description | Parameters |
125|-----------|------|-------------|------------|
126| `create-alter-action` | Alter Action | Creates Alter Actions | `input`: Instructions |
127| `create-charts` | Charts | Creates Recharts visualizations | `input`: Instructions |
128| `create-diagrams` | Diagrams | Generates Mermaid diagrams | `input`: Instructions |
129| `create-html` | HTML page | Creates HTML pages | `input`: Instructions |
130| `create-images` | Images | Generates AI images (Flux, Ideogram) | `input`: Instructions |
131| `create-maps` | Maps | Creates LeafletJS maps | `input`: Instructions |
132| `create-presentations` | HTML Presentations | Generates slide presentations | `input`: Instructions |
133| `create-react-app` | Tailwind React App | Creates React apps | `input`: Instructions |
134
135### 🔎 Explain Actions
136
137| Action ID | Name | Description | Parameters |
138|-----------|------|-------------|------------|
139| `analyze-paper` | Analyze Paper | Analyzes research papers | None |
140| `explain-selection` | Explain | Explains complex concepts simply | None |
141| `hidden-message` | Hidden message | Uncovers hidden messages in text | None |
142
143### 🔀 Git Actions
144
145| Action ID | Name | Description | Parameters |
146|-----------|------|-------------|------------|
147| `git-commit` | Commit message | Generates commit messages | None |
148| `git-review` | Review | Reviews code changes | None |
149| `git-summarize` | Summarize | Summarizes Git commits | None |
150| `pull-request` | Pull Request | Creates PR descriptions | None |
151
152### 🧠 Co-Intelligence Actions (Expert GPTs)
153
154| Action ID | Name | Description | Parameters |
155|-----------|------|-------------|------------|
156| `business-strategist-gpt` | Business Strategy Expert | Business strategy advice | `input`: Question |
157| `children-educator` | Children Educator | Early childhood education guidance | `input`: Question |
158| `e-commerce-strategist-gpt` | E-commerce Strategy Expert | E-commerce strategy advice | `input`: Question |
159| `hrmanager-gpt` | HR Manager Expert | HR management guidance | `input`: Question |
160| `marketer-gpt` | Marketing Expert | Marketing strategy advice | `input`: Question |
161| `mental-models-gpt` | Mental Models Expert | Mental models for decision-making | `input`: Question |
162| `software-architect-gpt` | Software Architect Expert | Software architecture guidance | `input`: Question |
163
164### 💬 General Actions
165
166| Action ID | Name | Description | Parameters |
167|-----------|------|-------------|------------|
168| `ask-anything` | Ask Anything | Open-ended AI conversation | `input`: Instructions |
169| `ask-web` | Search the web | Web search with sources | `input`: Question |
170
171### 📧 Email Actions
172
173| Action ID | Name | Description | Parameters |
174|-----------|------|-------------|------------|
175| `mail-draft` | Mail Draft | Creates email drafts | `input`: Instructions |
176| `mail-multi-summary` | Multiconversation summary | Summarizes multiple email threads | None |
177| `mail-reply` | Mail Reply | Generates email replies | `answerType`: Any updates?, Doesn't work, I don't know, etc. |
178| `mail-summary` | Thread summary | Summarizes email threads | None |
179
180### 📱 Social Media Actions
181
182| Action ID | Name | Description | Parameters |
183|-----------|------|-------------|------------|
184| `linkedin-post` | Linkedin Post | Creates LinkedIn posts | None |
185| `linkedin-reply` | Linkedin Reply | Generates LinkedIn replies | None |
186| `twitter-post` | Twitter Post | Creates engaging tweets | None |
187| `twitter-reply` | Twitter Reply | Generates tweet replies | None |
188| `twitter-thread` | Twitter Thread | Creates Twitter threads | None |
189
190### 📺 YouTube Actions
191
192| Action ID | Name | Description | Parameters |
193|-----------|------|-------------|------------|
194| `youtube-hidden-message` | Youtube hidden message | Analyzes videos for hidden messages | None |
195| `youtube-summarize-detailed` | Youtube detailed Summary | Comprehensive video summaries | None |
196| `youtube-summarize-micro` | Youtube micro summary | Quick video summaries | None |
197
198### 🎯 Other Actions
199
200| Action ID | Name | Description | Parameters |
201|-----------|------|-------------|------------|
202| `create-a-keynote-deck` | Generate Keynote slides | Generates Keynote presentations | `input`: Instructions |
203| `edit-a-keynote-deck` | Edit Keynote slide | Edits Keynote slides | `input`: Instructions |
204| `translate-the-deck` | Translate the deck | Translates Keynote presentations | `language`: Target language |
205| `write-presenter-notes` | Write presenter notes | Creates presenter notes | None |
206| `meeting-scribe` | Meeting Report | Converts transcripts to notes | None |
207| `spreadsheet-formula` | Spreadsheet Formula | Creates spreadsheet formulas | `input`: Instructions |
208| `user-story` | User Story | Creates agile user stories | None |
209
210---
211
212## Categories
213
214| Category | Description | Action Count |
215|----------|-------------|--------------|
216| `code` | Programming and development | 8 |
217| `writing` | Text editing and creation | 12 |
218| `translate` | Language translation | 4 |
219| `summarize` | Content summarization | 2 |
220| `extract` | Information extraction | 7 |
221| `format` | Text formatting | 6 |
222| `create` | Content creation | 8 |
223| `explain` | Explanation and analysis | 4 |
224| `git` | Git version control | 4 |
225| `co-intelligences` | Expert AI assistants | 7 |
226
227---
228
229## Usage Examples
230
231### From Clawdbot
232
233```javascript
234// Trigger ask-anything with a question
235const { triggerAction } = require('./index.js');
236triggerAction('ask-anything', 'What is machine learning?');
237
238// Find actions for "translate text"
239const { findActions } = require('./index.js');
240const matches = findActions('translate text');
241console.log(matches[0]); // { id: 'translate', name: 'Translate', ... }
242
243// Build URL without triggering
244const { buildCallbackUrl } = require('./index.js');
245const url = buildCallbackUrl('translate', null, { language: 'French' });
246// -> alter://action/translate?language=French
247```
248
249### From Command Line
250
251```bash
252# Ask a question
253node index.js trigger ask-anything --input "Explain quantum computing"
254
255# Translate with specific language
256node index.js trigger translate --param "language=Japanese"
257
258# Fix code with error message
259node index.js trigger fix-code --input "TypeError: undefined is not a function"
260
261# Change tone
262node index.js trigger change-tone --param "tone=Professional"
263
264# Search for actions
265node index.js find "create a chart"
266
267# Get action details
268node index.js info create-images
269```
270
271---
272
273## Notes
274
275- Actions operate on currently selected text/files in Alter
276- Parameters are URL-encoded automatically
277- Actions with `hasParameters: false` typically need selected content in Alter
278- The `open` command is used on macOS to trigger x-callback-urls