Built-in tools
Every built-in tool the assistant can be given, with the permission tree's default for each holder. This page is generated from the code, so it matches this commit.
A plugin's or an MCP server's tools are not listed here; the app names them on the extension's page. Some tools exist only when their part is configured: the mail tools need a mailbox, knowledge_search an embedder, whoami a speaker model, the image tools an image model, and skill_read and skill_load an installed skill.
| Column | Meaning |
|---|---|
| Kind | the gate kind a call is checked under; "by name" means the tool's own node decides, with no target |
| Chat, Voice | the default cell in a chat and in a spoken session |
| Agent | an agent's default, then what accepting its request for the tool sets: off → allow |
| Device | the default for a paired device that calls tools (an MCP client) |
| RO | read-only: the tool only reads, so a widget or a watch may refresh from it |
* | the default sits on the pattern *: it holds for every target |
Open a tool's row below its table for its description, its target and its arguments. Background: the permission tree and the permission reference.
Files
Read and change files in the workspace's mnt/ folder.
| Tool | Kind | Chat | Voice | Agent | Device | RO |
|---|---|---|---|---|---|---|
file_list | by name | allow | allow | off → allow | off | yes |
file_read | by name | allow | allow | off → allow | off | yes |
file_search | by name | allow | allow | off → allow | off | yes |
file_stat | by name | allow | allow | off → allow | off | yes |
file_write | file | ask * | off | off → ask | off | |
file_move | file | ask * | off | off → ask | off | |
file_remove | file | ask * | off | off → ask | off |
file_list
List the entries of a workspace directory. Returns a JSON array of {name, isDir, size}.
| Argument | Type | Req. | Description |
|---|---|---|---|
path | string | Workspace-relative directory (default the workspace root) |
file_read
Read a UTF-8 text file from the workspace and return its contents.
| Argument | Type | Req. | Description |
|---|---|---|---|
path | string | yes | Workspace-relative path to read |
file_search
Find files in the workspace by glob pattern, walking subdirectories. A pattern with no '/' matches file names anywhere (e.g. "*.md"); a pattern with a '/' matches the path relative to the search root. Returns a JSON array of paths.
| Argument | Type | Req. | Description |
|---|---|---|---|
path | string | Workspace-relative directory to search under (default the workspace root) | |
pattern | string | yes | Glob pattern, e.g. .md or src/.go |
file_stat
Stat a workspace path. Returns JSON {exists, isDir, size}; a missing path returns {"exists":false}.
| Argument | Type | Req. | Description |
|---|---|---|---|
path | string | yes | Workspace-relative path to stat |
file_write
Write a UTF-8 text file to the workspace (creating parent directories). This is a write and may require approval.
Target: path, from /path
| Argument | Type | Req. | Description |
|---|---|---|---|
content | string | yes | File contents |
path | string | yes | Workspace-relative path to write |
file_move
Move or rename a file within the workspace. This is a write and may require approval.
Target: path, from /from, /to
| Argument | Type | Req. | Description |
|---|---|---|---|
from | string | yes | Workspace-relative source path |
to | string | yes | Workspace-relative destination path |
file_remove
Remove a file (or empty directory) from the workspace. This is a write and may require approval.
Target: path, from /path
| Argument | Type | Req. | Description |
|---|---|---|---|
path | string | yes | Workspace-relative path to remove |
Network
Reach hosts on the network. Every call is checked against the host it goes to.
| Tool | Kind | Chat | Voice | Agent | Device | RO |
|---|---|---|---|---|---|---|
http_read | net | ask * | ask | off → ask | off | yes |
http_write | net | ask * | off | off → ask | off | |
dns_resolve | net | ask * | ask | off → ask | off | yes |
ping | net | ask * | ask | off → ask | off | yes |
http_read
Read a URL over HTTP(S) with a safe method (GET/HEAD). Returns a JSON object {status, statusText, headers, body} — the response text is in body.
Target: host, from /url
| Argument | Type | Req. | Description |
|---|---|---|---|
as | string | Optional: the alias of a secret (from secret_list) to authenticate the request with. The host puts its value into the request; you never see it. The URL's host must be one of the secret's destinations. | |
method | string: GET, HEAD | Safe HTTP method (default GET) | |
url | string | yes | The URL to read |
http_write
Send data to a URL with a mutating method (POST/PUT/PATCH/DELETE). Returns a JSON object {status, statusText, headers, body}. This is a write and may require approval.
Target: host, from /url
| Argument | Type | Req. | Description |
|---|---|---|---|
as | string | Optional: the alias of a secret (from secret_list) to authenticate the request with. The host puts its value into the request; you never see it. The URL's host must be one of the secret's destinations. | |
body | string | Request body | |
content_type | string | Content-Type of the body (default application/json) | |
method | string: POST, PUT, PATCH, DELETE | Mutating HTTP method (default POST) | |
url | string | yes | The URL to send to |
dns_resolve
Resolve a hostname's DNS records. Returns a JSON object {host, type, records}.
Target: host, from /host
| Argument | Type | Req. | Description |
|---|---|---|---|
host | string | yes | The hostname to resolve (an IP for PTR) |
type | string: A, AAAA, IP, MX, TXT, CNAME, NS, PTR, SRV | Record type (default A) |
ping
Send one ICMP echo to a host and report whether it answered. Returns a JSON object {host, ip, ok, rtt_ms}.
Target: host, from /host
| Argument | Type | Req. | Description |
|---|---|---|---|
host | string | yes | The hostname or IP to ping |
Mail
The mailbox, when one is set up.
| Tool | Kind | Chat | Voice | Agent | Device | RO |
|---|---|---|---|---|---|---|
mail_list | by name | allow | off | off → allow | off | yes |
mail_search | by name | allow | off | off → allow | off | yes |
mail_read | by name | allow | off | off → allow | off | yes |
mail_attachment_save | file | ask * | off | off → ask | off | |
mail_send | mail.send | ask * | off | off → ask | off |
mail_list
List the newest messages in a mail folder (newest first). Returns their UID, sender, subject, date and whether they are unread. Reading does not mark anything as read.
| Argument | Type | Req. | Description |
|---|---|---|---|
folder | string | Folder to list (default INBOX) | |
limit | integer | How many messages (default 10, max 50) |
mail_search
Search the mailbox on the server. Matches text anywhere in a message, optionally narrowed by sender and by a date floor. Returns message headers, newest first. This is a substring search, not a semantic one.
| Argument | Type | Req. | Description |
|---|---|---|---|
folder | string | Folder to search (default INBOX) | |
from | string | Only messages whose sender contains this | |
limit | integer | How many messages (default 10, max 50) | |
since | string | Only messages on or after this date (YYYY-MM-DD) | |
text | string | Text to find anywhere in the message |
mail_read
Read one message by its UID, as plain text. A message with no plain-text part comes back with an empty body. Its attachments are listed (id, name, type, size); mail_attachment_save saves one into the workspace.
| Argument | Type | Req. | Description |
|---|---|---|---|
folder | string | Folder the message is in (default INBOX) | |
uid | integer | yes | The message UID, as returned by mail_list or mail_search |
mail_attachment_save
Save one attachment of a message into the workspace, so the file tools and document tools can read it. This is a write and may require approval; it never overwrites a file.
Target: path, from /path
| Argument | Type | Req. | Description |
|---|---|---|---|
attachment | string | yes | The attachment's id, as mail_read lists it |
folder | string | Folder the message is in (default INBOX) | |
message | integer | yes | The message UID, as returned by mail_list or mail_search |
path | string | Workspace-relative path to save it to (default mail/<its name>) |
mail_send
Send a message from the household's own address. This leaves the household and cannot be undone; each recipient requires approval. It may carry files nocturn holds: a workspace file by its path (a document in knowledge/ too), or a picture of this conversation by its ref.
Target: address, from /to
| Argument | Type | Req. | Description |
|---|---|---|---|
attachments | array of object (attachment) | Files to attach, at most 10 and 10 MiB together | |
attachments[].name | string | The file name it is sent under (default: the path's own name) | |
attachments[].path | string | A workspace-relative path, e.g. knowledge/invoice.pdf | |
attachments[].ref | string | The ref of a picture this conversation carries, instead of a path | |
body | string (markdown) | yes | Message text in Markdown: bold, italics, lists (- or 1.), links and > quotes. A line break stays a line break. No HTML: it is sent as the text it is. |
subject | string | yes | Subject line |
to | array of string (email) | yes | Recipient addresses |
SSH
Commands on your servers, checked per host and command.
| Tool | Kind | Chat | Voice | Agent | Device | RO |
|---|---|---|---|---|---|---|
ssh_exec | ssh | ask * | off | off → ask | off |
ssh_exec
Run one command on a server over SSH, authenticated with an SSH key from secret_list (pass its alias as `as`; the host must be one of its destinations). No shell interprets the command: it runs with exactly the words written, quoted as in a shell. ; | & > < $ ` * ? ~ are refused unquoted, a backslash in a word always; run a pipeline or a glob as `sh -c '…'`. Returns {exitCode, stdout, stderr}; long output is cut. It may require approval.
Target: ssh. Also confirms: ssh.hostkey
| Argument | Type | Req. | Description |
|---|---|---|---|
as | string | yes | The alias of the SSH key secret to log in with (secret_list). You never see its value. |
command | string | yes | The command line, e.g. systemctl status nginx |
host | string | yes | The server: a host name or IPv4 address, with :port when not 22 |
timeout | integer | Seconds the command may run (default 60, at most 600) |
Work, reminders and time
Work items, collections, reminders and the clock.
| Tool | Kind | Chat | Voice | Agent | Device | RO |
|---|---|---|---|---|---|---|
work_list | by name | allow | allow | off → allow | off | yes |
work_history | by name | allow | off | off → allow | off | yes |
work_create | work | allow | allow | off → allow | off | |
work_update | work | allow | off | off → allow | off | |
work_restore | work.restore | ask | off | off → ask | off | |
collection_list | by name | allow | off | off → allow | off | yes |
collection_create | collection | ask | off | off → ask | off | |
remind | work | allow | allow | off → allow | off | |
remind_list | by name | allow | allow | off → allow | off | yes |
wake | by name | allow | off | off → allow | off | |
time_now | by name | allow | allow | off → allow | off | yes |
notify | notify | allow | allow | off → allow | off |
work_list
List work items, newest first: by default those not done or dropped, in every collection. An agent sees the items assigned to it or made by it. With types:true it lists the item types instead, each with its fields. Returns a JSON array.
| Argument | Type | Req. | Description |
|---|---|---|---|
assignee | string | "me", "owner" or "agent:<name>"; default everyone the caller sees | |
collection | string | Only the items of this collection, by name | |
status | string | "open" (default: everything not done or dropped), "all", or one status | |
types | boolean | List the item types and their fields instead of items | |
upcoming | boolean | Only items with a time still to come, soonest first |
work_history
List a work item's revisions, newest first: each version of its content (title, type, data, body, collection, place, remind, attachments), with its number, when, by whom, its note and which fields it changed. A revision is written whenever an item's content changes; its status and assignee are no part of one. With rev, returns that revision's content in full.
| Argument | Type | Req. | Description |
|---|---|---|---|
id | string | yes | The item's id |
rev | integer | A revision's number, to see its content in full |
work_create
Create a work item: something still to do, a question for the owner, a reminder (an item with a time), or something to keep in one of the owner's collections ("put it on my list"). The owner reads it later, on its own, away from this conversation — so make it stand on its own:
- title: one line that says what it is ("Call Dr. Weber's office to move the 4 Dec appointment"), never "this" or "the thing above";
- body (markdown): who, what, where, when; the decision or the question; names, addresses, numbers, ids and links from the conversation; what was already tried or agreed;
- attachments: the refs of the images, voice notes and files from this conversation that belong to it (the referral letter, the photo of the part);
- remind_at and place when it happens at a time or a place;
- type and data for typed content: the data is checked against the type, and an error says what to fix. The item links back to this conversation by itself; do not repeat that. Returns the item.
Types:
- note: something kept: a thought, an idea, a fact
- task: something to do, with a status; with remind_at it is a reminder (the default)
- question: something the owner is asked; it waits on them
- recipe: a dish to cook: yield, time, ingredients to tick, steps, where it came from; data {description, ingredients!: [{done, text!}], steps!: [..], totalTime, url, yield}
| Argument | Type | Req. | Description |
|---|---|---|---|
assignee | string | "owner" (default), "me" (the agent calling), or "agent:<name>" | |
attachments | array of string | Refs of images, voice notes or files from this conversation that belong to the item | |
body | string | Markdown: everything relevant from the conversation — who, what, where, when, the question or decision, names, numbers, ids, links | |
collection | string | The name of the collection it goes in; none = the owner's work at large | |
data | object | The type's content, as its fields say (work_list types:true) | |
place | string | Where it happens, free text | |
remind_at | string | When it pops: "in 2h", "2026-12-01T09:00" (local time) or RFC3339 with an offset | |
title | string | yes | One self-contained line: what it is |
type | string | One of note, task, question, recipe; default task, or the collection's own type inside a collection |
work_update
Change a work item: its status (open, in-progress, waiting, done, dropped), title, body, data (replacing it whole, checked against its type), collection, time, place or assignee, add attachments, or note progress. Mark an item done when it is done. A parked call waiting for the owner's review is answered by the owner, not changed here. Returns the item.
| Argument | Type | Req. | Description |
|---|---|---|---|
assignee | string | "owner", "me" or "agent:<name>" | |
attachments | array of string | Refs from this conversation to add | |
body | string | A new body (markdown), replacing the old one | |
collection | string | The collection to move it to, by name; "none" takes it out | |
data | object | New content for the item's type, replacing the old whole | |
id | string | yes | The item's id |
note | string | A line of progress for the item's history | |
place | string | A new place | |
remind_at | string | A new time ("in 2h", "2026-12-01T09:00", RFC3339), or "none" to take the time away | |
status | string | open, in-progress, waiting, done or dropped | |
title | string | A new title |
work_restore
Put an earlier revision of a work item back (work_history lists them): its content (title, type, data, body, collection, place, remind, attachments) becomes the newest revision, noted "restored rev N"; nothing is deleted, so the version it replaces can be restored again. The owner is asked first. Returns the item.
| Argument | Type | Req. | Description |
|---|---|---|---|
id | string | yes | The item's id |
rev | integer | yes | The number of the revision to put back |
collection_list
List the owner's collections ("Recipes", "Shopping list"), each with its type and how many items it holds.
No arguments.
collection_create
Create a collection of work items, for one type of thing (work_list with types:true names them). The owner is asked first. Prefer an existing collection (collection_list).
| Argument | Type | Req. | Description |
|---|---|---|---|
name | string | yes | The collection's name ("Recipes", "Shopping list") |
type | string | The type of what goes in it (work_list's types); default task |
remind
Remind the user at a future time: a work item with that time, which pops on their devices then. Same as work_create with remind_at; prefer work_create when there is more to say.
| Argument | Type | Req. | Description |
|---|---|---|---|
message | string | yes | What to remind the user of, standing on its own: what, who, where |
title | string | Optional short title | |
when | string | yes | When to remind: "in <duration>" ("in 30m", "in 2h") or a date and time ("2026-12-01T09:00", RFC3339 with an offset, or local time without one) |
remind_list
List the reminders still to come (work items with a time not yet reached), soonest first. Returns a JSON array of {id, fireAt, message, title}.
No arguments.
wake
Pause and resume yourself later: after seconds, this same conversation is re-invoked with note as the prompt. Use it to wait then continue — poll something, or re-check after a delay. The delay is clamped (min 1s, max 1h). Returns {wakeInSeconds}.
| Argument | Type | Req. | Description |
|---|---|---|---|
note | string | yes | The prompt to resume with, e.g. "re-check the deploy status" |
seconds | number | yes | How long to wait before resuming (clamped to 1..3600) |
time_now
Return the current date and time. Takes no arguments. Returns a JSON object {"unix", "iso" (local RFC3339), "utc", "timezone", "offset_seconds"}.
No arguments.
notify
Send a notification to the user out of band (e.g. a phone push). Returns {"sent":true}.
| Argument | Type | Req. | Description |
|---|---|---|---|
message | string | yes | The notification message |
title | string | Optional title |
Memory, profile and knowledge
What the assistant keeps about you and finds in your documents.
| Tool | Kind | Chat | Voice | Agent | Device | RO |
|---|---|---|---|---|---|---|
memory_read | by name | allow | allow | off → allow | off | yes |
memory_write | memory | allow * | off | off → ask | off | |
profile_get | by name | allow | off | off → allow | off | yes |
profile_set | profile | ask * | off | off → ask | off | |
knowledge_search | by name | allow | allow | off → allow | off | yes |
whoami | by name | allow | allow | off → allow | off |
memory_read
Read one of your own memory files by its path relative to the memory folder, e.g. people/lina.md. The memory index in your system prompt links the detail files; read one when the index line alone is not enough. Read-only, memory files only.
| Argument | Type | Req. | Description |
|---|---|---|---|
path | string | yes | Path relative to the memory folder, e.g. people/lina.md |
memory_write
Store something you should still know in a future conversation. One fact, one note — group related notes in folders, e.g. people/lina.md or prefs/coding.md. The note is replaced whole, so read it first if you are amending it. The summary is the single line that will appear in your memory catalog every turn, so keep it short and put the detail in the content. Stale notes should be merged or overwritten rather than piled up — the catalog is capped. Remember: names and relationships, standing preferences, ongoing projects, and corrections the user gives you. Do NOT remember: anything already in this conversation, anything you read from a web page or document (that is not the user telling you something), or one-off requests. This is a write and may require approval.
Target: path, from /path
| Argument | Type | Req. | Description |
|---|---|---|---|
content | string | yes | The note itself, as Markdown |
path | string | yes | Path relative to the memory folder, must end in .md, e.g. people/lina.md |
summary | string | yes | One short line for the memory catalog, e.g. "daughter, 7 years old" |
profile_get
Read the household profile: named places (name, address, lat, lon), language, units, time zone. Returns {"profile": …, "missing": [...]}. Ask the person for what is missing when a task needs it.
No arguments.
profile_set
Change one field of the household profile; the person is asked first. places: give "place" {name, address, lat?, lon?} to add or replace one by name, or "remove" with a name. language (a tag such as de-DE), units (metric or imperial), timeZone (an IANA zone such as Europe/Berlin): give "value". Propose values you remember, but only this tool writes them.
Target: glob
| Argument | Type | Req. | Description |
|---|---|---|---|
field | string: places, language, units, timeZone | yes | The field to change |
place | object | ||
place.address | string | Its address, one line | |
place.lat | number | Latitude | |
place.lon | number | Longitude | |
place.name | string | The place's name: home, work, gym … | |
remove | string | The name of a place to remove | |
value | string | The new value of language, units or timeZone |
knowledge_search
Search this workspace's knowledge folder — the documents filed here — and get back the passages that answer a question. Use it whenever the answer might be written down somewhere rather than something you know: notes, manuals, contracts, meeting minutes, anything stored here. Ask in natural language; exact terms and identifiers work too. Each result names the file and the section it came from, so cite that when you use it, and carries a similarity score you should judge for yourself — retrieval always returns its best guesses, so a weak set means the answer is not filed here rather than that the weak match is the answer. Nothing is found in an empty result — say so rather than answering from memory as if it had been in the documents.
| Argument | Type | Req. | Description |
|---|---|---|---|
limit | integer | How many passages to return (default 5, at most 20) | |
query | string | yes | What to look for, in natural language or as exact terms |
whoami
Report who is currently speaking, as recognised from their voice. Takes no arguments. Returns {"name", "confidence"}. An EMPTY name means the speaker is not recognised — say so or ask, and do not guess which household member it might be.
No arguments.
Widgets and watches
Live widgets on Home and watches that check something on a schedule.
| Tool | Kind | Chat | Voice | Agent | Device | RO |
|---|---|---|---|---|---|---|
widget_create | widget | ask | off | off → ask | off | |
widget_update | widget | ask | off | off → ask | off | |
widget_delete | widget | ask | off | off → ask | off | |
watch_create | widget | ask | off | off → ask | off | |
watch_update | widget | ask | off | off → ask | off | |
watch_delete | widget | ask | off | off → ask | off |
widget_create
Make a widget: a tool call shown as a small view on the home panel or inside a work item, refreshed on its own. Give either from {plugin, id, params} (a plugin's template) or the whole widget: source {tool, args} (a tool that only reads), refresh, map, view, controls. It runs once the owner accepts what it calls; one from a template the owner accepted with its plugin runs at once. size is how much of Home it takes (small: half a line, for stat, countdown, status; wide: a line; tall: a line, taller, for list and chart); left out, its view's default.
| Argument | Type | Req. | Description |
|---|---|---|---|
controls | array of object | Each An object with one key, the kind's name, holding its configuration: segment {param, options: [{label, value}]}, picker {param, options | places: true}, drill {label, view}, action | |
from | object | A plugin's widget template | |
from.id | string | ||
from.params | object | The template's parameters, as text | |
from.plugin | string | ||
item | string | The work item the widget is shown in | |
map | object | Named values read out of the answer: "$.path[0].field | filter", or {each: "$.list[*]", fields: {name: "@.field"}}. Filters: number:N int text upper lower trim truncate:N default:x time date iso minutes hours count first last sum min max avg join | |
name | string | yes | Lowercase letters, digits, - and _; it names the widget's column in the permission tree |
params | object | The parameters' starting values, as text | |
places | array of string: chat, item, pinned | Where it may stand; default where it stands now (pinned on Home, or item) | |
refresh | object | An object with one key, the kind's name, holding its configuration: interval {every: "15m", window?: {from: "06:00", to: "09:00", days?: ["mon"…]}}, push {resource, every?}, before {lead: "1h", every: "5m"} (the item's lead-up) | |
runs | string: background, watched | background (default) or watched: only while a device has it on screen | |
size | string: small, wide, tall | How much of Home it takes: small (half a line; stat, countdown, status), wide (a line; any), tall (a line, taller; list, chart). Left out: its view's default (small for stat, countdown, status; wide for list, chart), or on an update its size now | |
source | object | The tool call: {tool, args}, a tool that only reads; a string in args may name a parameter as {{param.<name>}} | |
source.args | object | ||
source.tool | string | ||
title | string | What the widget is called on screen | |
view | object | An object with one key, the kind's name, holding its configuration: stat {value, unit?, label?, caption?}, list {items, title, subtitle?, trailing?, badge?, max?}, countdown {at, label?}, status {state, states: {text: ok|info|warn|error}, label?, detail?}, chart {data, spec (Vega-Lite, no data: the records are put in), title?}, drawn by the same renderer as show_chart |
widget_update
Replace a widget by name with a new description (same arguments as widget_create). Its request waits for the owner again; it keeps its place on Home, and its size unless size is given.
| Argument | Type | Req. | Description |
|---|---|---|---|
controls | array of object | Each An object with one key, the kind's name, holding its configuration: segment {param, options: [{label, value}]}, picker {param, options | places: true}, drill {label, view}, action | |
from | object | A plugin's widget template | |
from.id | string | ||
from.params | object | The template's parameters, as text | |
from.plugin | string | ||
item | string | The work item the widget is shown in | |
map | object | Named values read out of the answer: "$.path[0].field | filter", or {each: "$.list[*]", fields: {name: "@.field"}}. Filters: number:N int text upper lower trim truncate:N default:x time date iso minutes hours count first last sum min max avg join | |
name | string | yes | Lowercase letters, digits, - and _; it names the widget's column in the permission tree |
params | object | The parameters' starting values, as text | |
places | array of string: chat, item, pinned | Where it may stand; default where it stands now (pinned on Home, or item) | |
refresh | object | An object with one key, the kind's name, holding its configuration: interval {every: "15m", window?: {from: "06:00", to: "09:00", days?: ["mon"…]}}, push {resource, every?}, before {lead: "1h", every: "5m"} (the item's lead-up) | |
runs | string: background, watched | background (default) or watched: only while a device has it on screen | |
size | string: small, wide, tall | How much of Home it takes: small (half a line; stat, countdown, status), wide (a line; any), tall (a line, taller; list, chart). Left out: its view's default (small for stat, countdown, status; wide for list, chart), or on an update its size now | |
source | object | The tool call: {tool, args}, a tool that only reads; a string in args may name a parameter as {{param.<name>}} | |
source.args | object | ||
source.tool | string | ||
title | string | What the widget is called on screen | |
view | object | An object with one key, the kind's name, holding its configuration: stat {value, unit?, label?, caption?}, list {items, title, subtitle?, trailing?, badge?, max?}, countdown {at, label?}, status {state, states: {text: ok|info|warn|error}, label?, detail?}, chart {data, spec (Vega-Lite, no data: the records are put in), title?}, drawn by the same renderer as show_chart |
widget_delete
Delete a widget by name.
| Argument | Type | Req. | Description |
|---|---|---|---|
name | string | yes | The widget's or watch's name |
watch_create
Make a watch: a tool call the scheduler makes on its own, with a condition on what it reads (changed, threshold, predicate) and actions when it holds (notify, create_item, update_item, append_history). It runs only once the owner accepts what it calls; a watch on a work item ends with it.
| Argument | Type | Req. | Description |
|---|---|---|---|
item | string | The work item the watch follows; it ends with it | |
map | object | yes | Named values read out of the answer, as for widget_create |
name | string | yes | Lowercase letters, digits, - and _; it names the watch's column in the permission tree |
params | object | ||
refresh | object | yes | An object with one key, the kind's name, holding its configuration: interval {every, window?}, push {resource, every?}, before |
source | object | yes | The tool call: {tool, args}, a tool that only reads |
source.args | object | ||
source.tool | string | ||
then | array of object | yes | Each An object with one key, the kind's name, holding its configuration: notify {title?, message}, create_item {type, title, body?, status?}, update_item {status?, fields?}, append_history {line}. Text may name values as |
title | string | yes | |
when | object | yes | An object with one key, the kind's name, holding its configuration: changed {value}, threshold {value, below | above, everyRun?}, predicate {all | any: [{value, op: eq|ne|lt|le|gt|ge|contains|in, to}], everyRun?} |
watch_update
Replace a watch by name with a new description (same arguments as watch_create). Its request waits for the owner again, and what it last read is dropped.
| Argument | Type | Req. | Description |
|---|---|---|---|
item | string | The work item the watch follows; it ends with it | |
map | object | yes | Named values read out of the answer, as for widget_create |
name | string | yes | Lowercase letters, digits, - and _; it names the watch's column in the permission tree |
params | object | ||
refresh | object | yes | An object with one key, the kind's name, holding its configuration: interval {every, window?}, push {resource, every?}, before |
source | object | yes | The tool call: {tool, args}, a tool that only reads |
source.args | object | ||
source.tool | string | ||
then | array of object | yes | Each An object with one key, the kind's name, holding its configuration: notify {title?, message}, create_item {type, title, body?, status?}, update_item {status?, fields?}, append_history {line}. Text may name values as |
title | string | yes | |
when | object | yes | An object with one key, the kind's name, holding its configuration: changed {value}, threshold {value, below | above, everyRun?}, predicate {all | any: [{value, op: eq|ne|lt|le|gt|ge|contains|in, to}], everyRun?} |
watch_delete
Delete a watch by name.
| Argument | Type | Req. | Description |
|---|---|---|---|
name | string | yes | The widget's or watch's name |
Showing
Charts, tables, diagrams and small pages in the chat.
| Tool | Kind | Chat | Voice | Agent | Device | RO |
|---|---|---|---|---|---|---|
show_chart | by name | allow | off | off → allow | off | |
show_table | by name | allow | off | off → allow | off | |
show_diagram | by name | allow | off | off → allow | off | |
show_html | by name | allow | off | off → allow | off |
show_chart
Show the person a chart, drawn from a Vega-Lite (v5 or v6) spec. Put the data inline in "data": {"values": [...]}; a "url" anywhere (remote data, image marks), "href" links and generated data (sequence, sphere, graticule) are refused, a bin, tick or density count is at most 1000, and the rows after the transforms at most 100000; and the app picks the colours and fonts, so leave out config, width and background. Use it when a picture of numbers says more than a sentence: a trend, a comparison, a distribution. The person sees the block in the chat; the result is only a confirmation with the block's id. Do not repeat the block's data in your answer — say what it shows. To change a block already shown (another form, other data, a fix), show the whole new version with replaces set to its id: the app puts it in the old one's place and keeps the earlier versions behind it. A version may be of another kind.
| Argument | Type | Req. | Description |
|---|---|---|---|
replaces | string | The id of a block shown earlier in this chat that this one is a new version of (optional; the confirmation that showed it named the id). | |
spec | string | yes | The Vega-Lite spec as JSON text, e.g. {"mark":"bar","data":{"values":[{"a":"x","b":3}]},"encoding":{"x":{"field":"a","type":"nominal"},"y":{"field":"b","type":"quantitative"}}}. |
title | string | A short title shown above the block (optional, one line). |
show_table
Show the person a table: either columns and rows, or CSV text whose first line is the header (not both). At most 40 columns and 500 rows; every row has one cell per column. Use it for records to compare or look up, not for two numbers a sentence can hold. The person sees the block in the chat; the result is only a confirmation with the block's id. Do not repeat the block's data in your answer — say what it shows. To change a block already shown (another form, other data, a fix), show the whole new version with replaces set to its id: the app puts it in the old one's place and keeps the earlier versions behind it. A version may be of another kind.
| Argument | Type | Req. | Description |
|---|---|---|---|
columns | array of string | The column names, in order. | |
csv | string | The whole table as CSV, header first — instead of columns and rows. | |
replaces | string | The id of a block shown earlier in this chat that this one is a new version of (optional; the confirmation that showed it named the id). | |
rows | array of array of string | The rows, each a list of cells in column order. A cell may also be a number, true/false or null. | |
title | string | A short title shown above the block (optional, one line). |
show_diagram
Show the person a diagram written in Mermaid: a flowchart, a sequence, a state machine, an entity relationship, a timeline, a Gantt chart. The source starts with the diagram's type (flowchart TD, sequenceDiagram, …). The app draws and colours it: no %%{init}%% directives or config front matter, and no click lines (nothing in a diagram is a link). The person sees the block in the chat; the result is only a confirmation with the block's id. Do not repeat the block's data in your answer — say what it shows. To change a block already shown (another form, other data, a fix), show the whole new version with replaces set to its id: the app puts it in the old one's place and keeps the earlier versions behind it. A version may be of another kind.
| Argument | Type | Req. | Description |
|---|---|---|---|
replaces | string | The id of a block shown earlier in this chat that this one is a new version of (optional; the confirmation that showed it named the id). | |
source | string | yes | The Mermaid source, e.g. "flowchart LR\n A[Mail] --> B{Spam?}". |
title | string | A short title shown above the block (optional, one line). |
show_html
Show the person a small self-contained HTML page as a live preview: a calculator, an interactive explainer, a mock-up. Everything is inline — <style>, <script>, images as data: URIs — because the preview has no network at all: nothing is fetched, no form is sent, no link or window opens, and the page cannot reach the app or anything else. It is given the app's colours and fonts as CSS variables --bg, --fg, --muted, --line, --font and --mono. It is shown first without its scripts, until the person taps Run, so write markup that reads before they run; no web components (no shadow roots) and no document.write. Prefer show_chart, show_table or show_diagram when one of them fits. The person sees the block in the chat; the result is only a confirmation with the block's id. Do not repeat the block's data in your answer — say what it shows. To change a block already shown (another form, other data, a fix), show the whole new version with replaces set to its id: the app puts it in the old one's place and keeps the earlier versions behind it. A version may be of another kind.
| Argument | Type | Req. | Description |
|---|---|---|---|
html | string | yes | The whole page, <!doctype html> and all, with its styles and scripts inline. |
replaces | string | The id of a block shown earlier in this chat that this one is a new version of (optional; the confirmation that showed it named the id). | |
title | string | A short title shown above the block (optional, one line). |
Images
Pictures from an image model, when one is configured.
| Tool | Kind | Chat | Voice | Agent | Device | RO |
|---|---|---|---|---|---|---|
image_generate | image | ask * | off | off → ask | off | |
image_edit | image | ask * | off | off → ask | off |
image_generate
Make pictures from a description with the image model Painter. Each picture costs money and the person is asked first. The pictures are shown to the person with your answer: do not link or describe them as files. Returns the ref of each picture, by which image_edit changes it.
Target: glob
| Argument | Type | Req. | Description |
|---|---|---|---|
n | integer | How many pictures, 1 to 4; 1 when left out | |
prompt | string | yes | What the picture shows, in detail: subject, style, light, composition |
size | string: square, landscape, portrait | The picture's shape |
image_edit
Change a picture of this conversation with the image model Painter: one the person sent or one image_generate or image_edit made. It costs money and the person is asked first. The new picture is shown to the person with your answer. Returns its ref.
Target: glob
| Argument | Type | Req. | Description |
|---|---|---|---|
image | string | The ref of the picture to change, or its first 8 characters or more; the newest picture of the conversation when left out | |
mask | string | The ref of a picture of this conversation whose transparent pixels are where to change it; anywhere when left out | |
prompt | string | yes | What to change, and what to keep |
Code, skills and secrets
Scripts in the sandbox, installed skills, and the names of stored secrets.
| Tool | Kind | Chat | Voice | Agent | Device | RO |
|---|---|---|---|---|---|---|
code_run | by name | allow | off | off → allow | off | |
skill_read | by name | allow | allow | off → allow | off | yes |
skill_load | by name | allow | off | off → allow | off | |
secret_list | by name | allow | off | off → allow | off |
code_run
Run a JavaScript program and return what it prints to stdout (console.log/print). Use it for multi-step computation and data shaping. Inside the script, perform an action by calling nocturn.call(toolName, args): it accepts the SAME tool names and argument schemas as the other tools available to you (pass the tool's name and the same arguments object you would pass that tool). It is SYNCHRONOUS and returns the result directly (a string) — no await needed, though top-level await also works. Such calls go through the same authorization and may require approval; code_run itself is not callable from within a script.
| Argument | Type | Req. | Description |
|---|---|---|---|
source | string | yes | JavaScript source to evaluate |
skill_read
Read a bundled file of a skill by its path relative to the skill: a reference the skill points you to, a template or example asset, or a script to run with code_run. Load the skill with skill_load first; the loaded skill lists its files. Read-only, only the skill's own files.
| Argument | Type | Req. | Description |
|---|---|---|---|
name | string | yes | The skill the file belongs to. |
path | string | yes | File path relative to the skill, e.g. scripts/analyze.js |
skill_load
Load a skill's full instructions into context by name.
| Argument | Type | Req. | Description |
|---|---|---|---|
name | string | yes | the skill to load |
secret_list
List the secrets you may use, each with its type, the password store it is in and the hosts it may be sent to: pass the alias as as to http_read or http_write to authenticate a request, or an ssh-key's to ssh_exec to log in to one of its hosts. You never see a value.
No arguments.
Gate kinds
A gate kind is a family of actions that share a target type and default rules. Chat is the rule in a chat a person is watching, Unattended the rule for a run nobody watches (an accepted agent), Voice whether a spoken session may use it at all.
| Kind | Target | Chat | Unattended | Voice | Tools |
|---|---|---|---|---|---|
collection | none | ask | ask | no | collection_create |
file | path | ask | ask | yes | file_move, file_remove, file_write, mail_attachment_save |
file.read | path | allow | allow | yes | a workspace file another tool reads to send on (a mail's attachment), decided as file_read is for the holder |
image | glob | ask | ask | no | image_edit, image_generate |
mail.send | address | ask | ask | no | mail_send |
memory | path | allow | ask | no | memory_write |
net | host | ask | ask | yes | dns_resolve, http_read, http_write, ping |
notify | none | allow | allow | yes | notify |
profile | glob | ask | ask | no | profile_set |
secret | none | ask | ask | no | a call that names a secret (the as argument of the HTTP tools), decided on the secret's node |
ssh | ssh | ask | ask | no | ssh_exec |
ssh.hostkey | none | ask | ask | no | a confirmation ssh asks for |
widget | none | ask | ask | no | watch_create, watch_delete, watch_update, widget_create, widget_delete, widget_update |
work | none | allow | allow | yes | remind, work_create, work_update |
work.restore | none | ask | ask | no | work_restore |