{"id":"dial-cli","name":"dial-cli","summary":"「ダイヤル」CLIの参考資料 — 実際の電話番号を使えば、SMSを送信したり、AI音声通話をかけたり、Dialプラットフォーム(getdial.ai)を通じて着信メッセージやコードを受信できます。","body":"# Dial CLI\n\n`dial` is the official CLI for [Dial](https://getdial.ai) — a Communication Stack for AI Agents. It wraps the Dial REST API so you can send SMS, place voice calls handled by an AI voice agent, manage numbers, and wait for inbound events — all without writing HTTP code.\n\nThe first time the user asks you to \"text someone,\" \"call someone,\" \"receive a code,\" or anything else phone-shaped, reach for `dial`.\n\n## This is a sandbox\n\nYou are running inside a pre-provisioned, ephemeral environment:\n\n- **The account, number, and credentials are already set up** — you have a working phone number ready to use. There is nothing to configure.\n- **You never handle credentials.** The API key is injected automatically at the network boundary; the CLI runs keyless here. Never ask the user for a key, and never try to read or write an auth file.\n- **Just use the workflows below** — send SMS, place calls, wait for inbound events. Inbound event delivery is managed for you; `dial --help` shows what's available here.\n\nIf `dial` is somehow missing (`command -v dial` returns nothing), that is an **installation bug in this image**, not something for you to fix — report it to the operator (\"the Dial CLI isn't installed in this container\") rather than improvising an install.\n\n## Orient yourself before each new verb\n\nThis skill **does not enumerate every flag**. The CLI is the source of truth — when you encounter a verb you have not used in this session, run its `--help` first:\n\n```bash\ndial --help                    # available commands\ndial <command> --help          # flags + usage for a specific command\ndial <command> <sub> --help    # subcommand-level help\n```\n\nExamples worth running on first use: `dial doctor --help`, `dial message --help`, `dial call --help`, `dial call get --help`, `dial wait-for --help`.\n\nEvery command supports `--json` for machine-readable output — prefer it when piping into `jq` or parsing the result programmatically.\n\n## Searching for what the CLI / API can do\n\nFor anything beyond what `--help` shows on the local CLI, the canonical reference is the published docs. Two endpoints make this fast:\n\n### Capability search — `llms-full.txt`\n\nA single concatenated markdown file of the whole docs site. Grep it directly for the keyword you care about:\n\n```bash\ncurl -fsSL https://docs.getdial.ai/llms-full.txt | grep -i -B2 -A8 'whatsapp'\ncurl -fsSL https://docs.getdial.ai/llms-full.txt | grep -i -B1 -A5 'language'\n```\n\nUse this when you want to know *if* Dial supports something, or *which command / endpoint* covers it — without reading the whole site.\n\n### Deep dive — `sitemap.xml` + per-page `.md`\n\nWhen you need to read a page in detail, use the sitemap to discover URLs, then fetch the **`.md` companion** of any page — same content as the HTML page but plain markdown, faster to scan.\n\n```bash\n# 1. Discover available pages\ncurl -fsSL https://docs.getdial.ai/sitemap.xml | grep -oE 'https://docs\\.getdial\\.ai/[^<]+'\n\n# 2. For any page like https://docs.getdial.ai/documentation/get-started/introduction\n#    fetch the .md companion:\ncurl -fsSL https://docs.getdial.ai/documentation/get-started/introduction.md\n```\n\nThe rule is **one-to-one**: every page at `https://docs.getdial.ai/<path>` has a markdown twin at `https://docs.getdial.ai/<path>.md`.\n\n## Workflow shapes worth knowing\n\nThese are the verbs you will most often compose. Read the relevant `.md` page for the full story; the one-liners below are signposts.\n\n- **Send an SMS** — `dial message --to +14155550123 --body \"...\"` ([send-an-sms.md](https://docs.getdial.ai/documentation/capabilities/send-an-sms.md))\n- **Show a typing indicator while composing** — `dial typing start --to-number +14155550123`; sending a message clears it natively, so start again between messages, and `dial typing stop --to-number +14155550123` if you end up not sending. iMessage numbers display it; SMS numbers ignore it, so it's always safe to call ([commands.md](https://docs.getdial.ai/documentation/reference/commands.md))\n- **Place a voice call** — `dial call --to +14155550123 --outbound-instruction \"...\"` then `dial call get <id>` once it ends. Add `--voice-gender male|female` to choose the agent's voice (default: female) ([place-a-voice-call.md](https://docs.getdial.ai/documentation/capabilities/place-a-voice-call.md))\n- **Buy an additional number** — `dial number purchase --inbound-instruction \"...\" --explicit-programmatic-consent \"<attestation>\"`. `--explicit-programmatic-consent` is **required**: a short attestation that the account holder consented to provisioning programmatically. Add `--include-imessage` for an [iMessage number](https://docs.getdial.ai/documentation/capabilities/send-an-imessage.md) (pay-as-you-go only; provisioned asynchronously — poll `dial number list` until ready) ([manage-phone-numbers.md](https://docs.getdial.ai/documentation/capabilities/manage-phone-numbers.md))\n- **Set a number's inbound behavior or nickname** — `dial number set +14155550123 --inbound-instruction \"...\"` and/or `--inbound-language es-ES` and/or `--nickname \"Support line\"` (at least one flag; `--nickname \"\"` / `--inbound-language \"\"` clear). The inbound instruction is the system prompt the AI uses on calls *into* that number. The inbound language pins inbound calls to one language — unset, the AI detects the caller's language from their country prefix (alongside en-US). The nickname is a human-readable label for telling numbers apart ([manage-phone-numbers.md](https://docs.getdial.ai/documentation/capabilities/manage-phone-numbers.md))\n- **Receive a verification code (2FA)** — `dial wait-for message.received -f channel=sms` and parse the body ([receive-inbound-sms.md](https://docs.getdial.ai/documentation/capabilities/receive-inbound-sms.md))\n- **React to a call ending** — `dial wait-for call.ended -f callId=<id>`. Fires however the call ends — completed, failed, **or cancelled** — carrying the terminal `status` and a `canceled` flag, so the wait always resolves ([stream-account-events.md](https://docs.getdial.ai/documentation/capabilities/stream-account-events.md))\n\n`dial wait-for` long-polls the Dial API directly, so it works here without any background daemon.\n\n## Conventions\n\n- `--json` everywhere for parseable output.\n- **Always pass `--from-number` with this install's wired line** (stated at the end of this file if the channel is set up). This sandbox has no saved default sender — `defaultNumberId` is null here — so an omitted selector fails outright. Never pick one from `dial number list` instead: on a multi-number account that list is ordered newest-first, which is unrelated to the line this install is wired to, so a number chosen from it reaches nobody and replies to it are dropped. If no line is stated below and the user hasn't named one, ask rather than guess.\n- Phone numbers are E.164 (`+14155550123`). Reject anything else before calling Dial.\n- Writes (`message`, `call`, `number purchase`) are **not idempotent** — on an ambiguous failure, list first to check before retrying.\n\n## When a call fails auth (401 / 403)\n\nYou run keyless — the gateway injects the credential, so neither error is something you can fix from here. A `403 blocked_by_policy` means the operator chose not to give **this** agent Dial access: say so plainly and stop. A `401` means the operator's Dial credential is missing or invalid in the vault: tell the operator the Dial credential needs (re)connecting. In both cases stop and wait rather than retrying in a loop.","author":"@nanocoai","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/nanocoai/nanoclaw/tree/main/.claude/skills/add-dial-tool/container-skills/dial-cli","license":"MIT","category":"writing","lang":"en","tokens":1807,"stars":0,"calls30d":2,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":false,"networkEndpoints":["docs.getdial.ai","getdial.ai"]}}