sandbox-twilio
БесплатноБез исполняемых скриптовНе проверенSend SMS and WhatsApp messages and look up numbers from a Code node or CodeAct action, with NodeTool's Twilio request builder running on the host
от nodetool-ai★ 674 звезды на GitHubОб этом скилле
Twilio in the sandbox
Specifier: @nodetool-ai/sandbox-twilio. Import it at the top of the body.
Twilio is HTTP Basic auth over form-encoded bodies, on a URL that buries the account SID in the path. None of that is hard; all of it is easy to get wrong once, and the failure is a 401 that names nothing.
Nothing here sends a request. request builds one; the guest's own fetch
sends it, under the run's fetch cap and SSRF guard.
request
import { request } from "@nodetool-ai/sandbox-twilio";
const accountSid = await nodetool.secrets.get("TWILIO_ACCOUNT_SID");
const authToken = await nodetool.secrets.get("TWILIO_AUTH_TOKEN");
const req = await request({
accountSid, authToken,
path: "Messages.json",
method: "POST",
params: { To: inputs.to, From: inputs.from, Body: inputs.text }
});
const res = await fetch(req.url, req);
if (!res.ok) throw new Error(`Twilio: ${res.json.message ?? res.status}`);
return { sid: res.json.sid, status: res.json.status };
Options: accountSid and authToken (required), path (required), method
(default GET), params, host (default api.twilio.com), query.
params become the form body on a write and the query string on a read.
A path without a leading slash is an Account resource and lands under
/2010-04-01/Accounts/<sid>/. One with a leading slash is used as written,
which is how the other products are reached.
Same endpoint; the numbers carry a whatsapp: prefix.
const req = await request({
accountSid, authToken, path: "Messages.json", method: "POST",
params: {
To: `whatsapp:${inputs.to}`,
From: `whatsapp:${inputs.from}`,
Body: inputs.text
}
});
Reading messages
const req = await request({
accountSid, authToken, path: "Messages.json",
params: { To: inputs.to, PageSize: 50 }
});
const { messages } = (await fetch(req.url, req)).json;
Number lookup
Lookup lives on its own host, so pass an absolute path:
const req = await request({
accountSid, authToken,
host: "lookups.twilio.com",
path: `/v2/PhoneNumbers/${encodeURIComponent(inputs.phone)}`,
params: { Fields: "line_type_intelligence" }
});
Gotchas
requestis async. A host call is a round trip.- Parameter names are PascalCase.
To,From,Body,MediaUrl— Twilio ignores what it does not recognize, so a lowercasebodysends an empty message rather than an error. - Numbers are E.164.
+15551234567, country code and all. - Only
*.twilio.comhosts are accepted, so a mistypedhostfails here rather than mailing credentials somewhere else. - An error is a non-2xx with JSON. Read
res.json.messageandres.json.code; the code maps to Twilio's error reference.
Установить sandbox-twilio в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sandbox-twilio?
Send SMS and WhatsApp messages and look up numbers from a Code node or CodeAct action, with NodeTool's Twilio request builder running on the host
Как установить скилл sandbox-twilio?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sandbox-twilio запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic