Skip to content

Reference

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.

ColumnMeaning
Kindthe gate kind a call is checked under; "by name" means the tool's own node decides, with no target
Chat, Voicethe default cell in a chat and in a spoken session
Agentan agent's default, then what accepting its request for the tool sets: off → allow
Devicethe default for a paired device that calls tools (an MCP client)
ROread-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.

ToolKindChatVoiceAgentDeviceRO
file_listby nameallowallowoff → allowoffyes
file_readby nameallowallowoff → allowoffyes
file_searchby nameallowallowoff → allowoffyes
file_statby nameallowallowoff → allowoffyes
file_writefileask *offoff → askoff
file_movefileask *offoff → askoff
file_removefileask *offoff → askoff

file_list

List the entries of a workspace directory. Returns a JSON array of {name, isDir, size}.

ArgumentTypeReq.Description
pathstringWorkspace-relative directory (default the workspace root)

file_read

Read a UTF-8 text file from the workspace and return its contents.

ArgumentTypeReq.Description
pathstringyesWorkspace-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.

ArgumentTypeReq.Description
pathstringWorkspace-relative directory to search under (default the workspace root)
patternstringyesGlob pattern, e.g. .md or src/.go

file_stat

Stat a workspace path. Returns JSON {exists, isDir, size}; a missing path returns {"exists":false}.

ArgumentTypeReq.Description
pathstringyesWorkspace-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

ArgumentTypeReq.Description
contentstringyesFile contents
pathstringyesWorkspace-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

ArgumentTypeReq.Description
fromstringyesWorkspace-relative source path
tostringyesWorkspace-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

ArgumentTypeReq.Description
pathstringyesWorkspace-relative path to remove

Network ​

Reach hosts on the network. Every call is checked against the host it goes to.

ToolKindChatVoiceAgentDeviceRO
http_readnetask *askoff → askoffyes
http_writenetask *offoff → askoff
dns_resolvenetask *askoff → askoffyes
pingnetask *askoff → askoffyes

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

ArgumentTypeReq.Description
asstringOptional: 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.
methodstring: GET, HEADSafe HTTP method (default GET)
urlstringyesThe 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

ArgumentTypeReq.Description
asstringOptional: 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.
bodystringRequest body
content_typestringContent-Type of the body (default application/json)
methodstring: POST, PUT, PATCH, DELETEMutating HTTP method (default POST)
urlstringyesThe URL to send to

dns_resolve

Resolve a hostname's DNS records. Returns a JSON object {host, type, records}.

Target: host, from /host

ArgumentTypeReq.Description
hoststringyesThe hostname to resolve (an IP for PTR)
typestring: A, AAAA, IP, MX, TXT, CNAME, NS, PTR, SRVRecord 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

ArgumentTypeReq.Description
hoststringyesThe hostname or IP to ping

Mail ​

The mailbox, when one is set up.

ToolKindChatVoiceAgentDeviceRO
mail_listby nameallowoffoff → allowoffyes
mail_searchby nameallowoffoff → allowoffyes
mail_readby nameallowoffoff → allowoffyes
mail_attachment_savefileask *offoff → askoff
mail_sendmail.sendask *offoff → askoff

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.

ArgumentTypeReq.Description
folderstringFolder to list (default INBOX)
limitintegerHow 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.

ArgumentTypeReq.Description
folderstringFolder to search (default INBOX)
fromstringOnly messages whose sender contains this
limitintegerHow many messages (default 10, max 50)
sincestringOnly messages on or after this date (YYYY-MM-DD)
textstringText 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.

ArgumentTypeReq.Description
folderstringFolder the message is in (default INBOX)
uidintegeryesThe 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

ArgumentTypeReq.Description
attachmentstringyesThe attachment's id, as mail_read lists it
folderstringFolder the message is in (default INBOX)
messageintegeryesThe message UID, as returned by mail_list or mail_search
pathstringWorkspace-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

ArgumentTypeReq.Description
attachmentsarray of object (attachment)Files to attach, at most 10 and 10 MiB together
attachments[].namestringThe file name it is sent under (default: the path's own name)
attachments[].pathstringA workspace-relative path, e.g. knowledge/invoice.pdf
attachments[].refstringThe ref of a picture this conversation carries, instead of a path
bodystring (markdown)yesMessage 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.
subjectstringyesSubject line
toarray of string (email)yesRecipient addresses

SSH ​

Commands on your servers, checked per host and command.

ToolKindChatVoiceAgentDeviceRO
ssh_execsshask *offoff → askoff

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

ArgumentTypeReq.Description
asstringyesThe alias of the SSH key secret to log in with (secret_list). You never see its value.
commandstringyesThe command line, e.g. systemctl status nginx
hoststringyesThe server: a host name or IPv4 address, with :port when not 22
timeoutintegerSeconds the command may run (default 60, at most 600)

Work, reminders and time ​

Work items, collections, reminders and the clock.

ToolKindChatVoiceAgentDeviceRO
work_listby nameallowallowoff → allowoffyes
work_historyby nameallowoffoff → allowoffyes
work_createworkallowallowoff → allowoff
work_updateworkallowoffoff → allowoff
work_restorework.restoreaskoffoff → askoff
collection_listby nameallowoffoff → allowoffyes
collection_createcollectionaskoffoff → askoff
remindworkallowallowoff → allowoff
remind_listby nameallowallowoff → allowoffyes
wakeby nameallowoffoff → allowoff
time_nowby nameallowallowoff → allowoffyes
notifynotifyallowallowoff → allowoff

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.

ArgumentTypeReq.Description
assigneestring"me", "owner" or "agent:<name>"; default everyone the caller sees
collectionstringOnly the items of this collection, by name
statusstring"open" (default: everything not done or dropped), "all", or one status
typesbooleanList the item types and their fields instead of items
upcomingbooleanOnly 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.

ArgumentTypeReq.Description
idstringyesThe item's id
revintegerA 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}
ArgumentTypeReq.Description
assigneestring"owner" (default), "me" (the agent calling), or "agent:<name>"
attachmentsarray of stringRefs of images, voice notes or files from this conversation that belong to the item
bodystringMarkdown: everything relevant from the conversation — who, what, where, when, the question or decision, names, numbers, ids, links
collectionstringThe name of the collection it goes in; none = the owner's work at large
dataobjectThe type's content, as its fields say (work_list types:true)
placestringWhere it happens, free text
remind_atstringWhen it pops: "in 2h", "2026-12-01T09:00" (local time) or RFC3339 with an offset
titlestringyesOne self-contained line: what it is
typestringOne 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.

ArgumentTypeReq.Description
assigneestring"owner", "me" or "agent:<name>"
attachmentsarray of stringRefs from this conversation to add
bodystringA new body (markdown), replacing the old one
collectionstringThe collection to move it to, by name; "none" takes it out
dataobjectNew content for the item's type, replacing the old whole
idstringyesThe item's id
notestringA line of progress for the item's history
placestringA new place
remind_atstringA new time ("in 2h", "2026-12-01T09:00", RFC3339), or "none" to take the time away
statusstringopen, in-progress, waiting, done or dropped
titlestringA 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.

ArgumentTypeReq.Description
idstringyesThe item's id
revintegeryesThe 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).

ArgumentTypeReq.Description
namestringyesThe collection's name ("Recipes", "Shopping list")
typestringThe 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.

ArgumentTypeReq.Description
messagestringyesWhat to remind the user of, standing on its own: what, who, where
titlestringOptional short title
whenstringyesWhen 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}.

ArgumentTypeReq.Description
notestringyesThe prompt to resume with, e.g. "re-check the deploy status"
secondsnumberyesHow 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}.

ArgumentTypeReq.Description
messagestringyesThe notification message
titlestringOptional title

Memory, profile and knowledge ​

What the assistant keeps about you and finds in your documents.

ToolKindChatVoiceAgentDeviceRO
memory_readby nameallowallowoff → allowoffyes
memory_writememoryallow *offoff → askoff
profile_getby nameallowoffoff → allowoffyes
profile_setprofileask *offoff → askoff
knowledge_searchby nameallowallowoff → allowoffyes
whoamiby nameallowallowoff → allowoff

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.

ArgumentTypeReq.Description
pathstringyesPath 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

ArgumentTypeReq.Description
contentstringyesThe note itself, as Markdown
pathstringyesPath relative to the memory folder, must end in .md, e.g. people/lina.md
summarystringyesOne 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

ArgumentTypeReq.Description
fieldstring: places, language, units, timeZoneyesThe field to change
placeobject
place.addressstringIts address, one line
place.latnumberLatitude
place.lonnumberLongitude
place.namestringThe place's name: home, work, gym …
removestringThe name of a place to remove
valuestringThe 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.

ArgumentTypeReq.Description
limitintegerHow many passages to return (default 5, at most 20)
querystringyesWhat 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.

ToolKindChatVoiceAgentDeviceRO
widget_createwidgetaskoffoff → askoff
widget_updatewidgetaskoffoff → askoff
widget_deletewidgetaskoffoff → askoff
watch_createwidgetaskoffoff → askoff
watch_updatewidgetaskoffoff → askoff
watch_deletewidgetaskoffoff → askoff

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.

ArgumentTypeReq.Description
controlsarray of objectEach 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
fromobjectA plugin's widget template
from.idstring
from.paramsobjectThe template's parameters, as text
from.pluginstring
itemstringThe work item the widget is shown in
mapobjectNamed 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
namestringyesLowercase letters, digits, - and _; it names the widget's column in the permission tree
paramsobjectThe parameters' starting values, as text
placesarray of string: chat, item, pinnedWhere it may stand; default where it stands now (pinned on Home, or item)
refreshobjectAn 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)
runsstring: background, watchedbackground (default) or watched: only while a device has it on screen
sizestring: small, wide, tallHow 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
sourceobjectThe tool call: {tool, args}, a tool that only reads; a string in args may name a parameter as {{param.<name>}}
source.argsobject
source.toolstring
titlestringWhat the widget is called on screen
viewobjectAn 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.

ArgumentTypeReq.Description
controlsarray of objectEach 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
fromobjectA plugin's widget template
from.idstring
from.paramsobjectThe template's parameters, as text
from.pluginstring
itemstringThe work item the widget is shown in
mapobjectNamed 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
namestringyesLowercase letters, digits, - and _; it names the widget's column in the permission tree
paramsobjectThe parameters' starting values, as text
placesarray of string: chat, item, pinnedWhere it may stand; default where it stands now (pinned on Home, or item)
refreshobjectAn 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)
runsstring: background, watchedbackground (default) or watched: only while a device has it on screen
sizestring: small, wide, tallHow 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
sourceobjectThe tool call: {tool, args}, a tool that only reads; a string in args may name a parameter as {{param.<name>}}
source.argsobject
source.toolstring
titlestringWhat the widget is called on screen
viewobjectAn 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.

ArgumentTypeReq.Description
namestringyesThe 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.

ArgumentTypeReq.Description
itemstringThe work item the watch follows; it ends with it
mapobjectyesNamed values read out of the answer, as for widget_create
namestringyesLowercase letters, digits, - and _; it names the watch's column in the permission tree
paramsobject
refreshobjectyesAn object with one key, the kind's name, holding its configuration: interval {every, window?}, push {resource, every?}, before
sourceobjectyesThe tool call: {tool, args}, a tool that only reads
source.argsobject
source.toolstring
thenarray of objectyesEach 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
titlestringyes
whenobjectyesAn 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.

ArgumentTypeReq.Description
itemstringThe work item the watch follows; it ends with it
mapobjectyesNamed values read out of the answer, as for widget_create
namestringyesLowercase letters, digits, - and _; it names the watch's column in the permission tree
paramsobject
refreshobjectyesAn object with one key, the kind's name, holding its configuration: interval {every, window?}, push {resource, every?}, before
sourceobjectyesThe tool call: {tool, args}, a tool that only reads
source.argsobject
source.toolstring
thenarray of objectyesEach 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
titlestringyes
whenobjectyesAn 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.

ArgumentTypeReq.Description
namestringyesThe widget's or watch's name

Showing ​

Charts, tables, diagrams and small pages in the chat.

ToolKindChatVoiceAgentDeviceRO
show_chartby nameallowoffoff → allowoff
show_tableby nameallowoffoff → allowoff
show_diagramby nameallowoffoff → allowoff
show_htmlby nameallowoffoff → allowoff

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.

ArgumentTypeReq.Description
replacesstringThe 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).
specstringyesThe 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"}}}.
titlestringA 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.

ArgumentTypeReq.Description
columnsarray of stringThe column names, in order.
csvstringThe whole table as CSV, header first — instead of columns and rows.
replacesstringThe 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).
rowsarray of array of stringThe rows, each a list of cells in column order. A cell may also be a number, true/false or null.
titlestringA 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.

ArgumentTypeReq.Description
replacesstringThe 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).
sourcestringyesThe Mermaid source, e.g. "flowchart LR\n A[Mail] --> B{Spam?}".
titlestringA 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.

ArgumentTypeReq.Description
htmlstringyesThe whole page, <!doctype html> and all, with its styles and scripts inline.
replacesstringThe 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).
titlestringA short title shown above the block (optional, one line).

Images ​

Pictures from an image model, when one is configured.

ToolKindChatVoiceAgentDeviceRO
image_generateimageask *offoff → askoff
image_editimageask *offoff → askoff

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

ArgumentTypeReq.Description
nintegerHow many pictures, 1 to 4; 1 when left out
promptstringyesWhat the picture shows, in detail: subject, style, light, composition
sizestring: square, landscape, portraitThe 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

ArgumentTypeReq.Description
imagestringThe ref of the picture to change, or its first 8 characters or more; the newest picture of the conversation when left out
maskstringThe ref of a picture of this conversation whose transparent pixels are where to change it; anywhere when left out
promptstringyesWhat to change, and what to keep

Code, skills and secrets ​

Scripts in the sandbox, installed skills, and the names of stored secrets.

ToolKindChatVoiceAgentDeviceRO
code_runby nameallowoffoff → allowoff
skill_readby nameallowallowoff → allowoffyes
skill_loadby nameallowoffoff → allowoff
secret_listby nameallowoffoff → allowoff

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.

ArgumentTypeReq.Description
sourcestringyesJavaScript 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.

ArgumentTypeReq.Description
namestringyesThe skill the file belongs to.
pathstringyesFile path relative to the skill, e.g. scripts/analyze.js

skill_load

Load a skill's full instructions into context by name.

ArgumentTypeReq.Description
namestringyesthe 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.

KindTargetChatUnattendedVoiceTools
collectionnoneaskasknocollection_create
filepathaskaskyesfile_move, file_remove, file_write, mail_attachment_save
file.readpathallowallowyesa workspace file another tool reads to send on (a mail's attachment), decided as file_read is for the holder
imageglobaskasknoimage_edit, image_generate
mail.sendaddressaskasknomail_send
memorypathallowasknomemory_write
nethostaskaskyesdns_resolve, http_read, http_write, ping
notifynoneallowallowyesnotify
profileglobaskasknoprofile_set
secretnoneaskasknoa call that names a secret (the as argument of the HTTP tools), decided on the secret's node
sshsshaskasknossh_exec
ssh.hostkeynoneaskasknoa confirmation ssh asks for
widgetnoneaskasknowatch_create, watch_delete, watch_update, widget_create, widget_delete, widget_update
worknoneallowallowyesremind, work_create, work_update
work.restorenoneaskasknowork_restore

nocturn is open source. Example hosts and people on these pages are made up.