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