Docs The agent

The agent

Intabula's built-in AI agent works on your workspace through a fixed set of typed operations. It has no shell: every read and write goes through one of those operations. It runs on the Claude or Codex subscription you already have (no API key, no per-token billing), or on open-weight models via OpenRouter with your own key.

Providers

One agent panel supports three providers, and you switch between them in the panel. All three get the same workspace operations listed below and the same approval mode. Web access and linked-folder reading work differently per provider, as described under Read-only context tools.

Workspace operations

These are the only ways the agent can touch your workspace. Operations marked as writes pause for your approval when approval mode is on.

OperationWhat it doesWrite
list_collectionsList the collections in the workspace with record counts.No
get_schemaRead a collection's pinned fields and inferred field stats.No
query_recordsQuery a collection's records with filters and sorting.No
search_vaultFull-text search across titles, fields, bodies, and text files (accent-insensitive). In the agent panel it also searches drafts and past conversations.No
get_recordRead one record's fields and body.No
get_backlinksList the records that link to a given record.No
list_needs_attentionRead the needs-attention inbox, with suggested fixes for each item. The seven item kinds are listed in Data model.No
list_recent_changesList records changed within a look-back window, newest first, whoever changed them.No
open_recordOpen a record in the app for you. Agent panel only.No
open_collectionOpen a collection in the app for you. Agent panel only.No
pin_fieldPromote a recurring field to an official typed column.Yes
create_recordCreate a record with frontmatter fields and a Markdown body.Yes
update_recordEdit fields or body. The edit splices only the changed segment.Yes
rename_recordRename atomically. Every wikilink across the workspace is rewritten, under a journal.Yes
move_recordMove a record between collections; references follow.Yes
delete_recordDelete a record. Links that pointed to it show up in the needs-attention inbox.Yes
create_viewSave a table or Kanban view to the sidebar.Yes
create_botGive a collection a bot with a charter and schedule. The bot is saved switched off; only you can turn it on. Not available to bots themselves.Yes
save_conversationSave a conversation as a record in a collection. Agent panel only.Yes
list_filesList a collection's other files (JSON, CSV, images, PDFs, anything that isn't a note) with their size and how each opens.No
read_fileRead a text file in full. For an image, PDF, or other binary file it returns only the details; the contents are never sent to the model.No
write_fileCreate or overwrite a plain-text file: JSON, YAML, TOML, CSV, TXT, XML, or .env. Markdown goes through the record operations.Yes
rename_fileRename a file. Links and embeds that point to it are rewritten, under a journal.Yes
move_fileMove a file to another collection; links follow.Yes
delete_fileDelete a file. Links and embeds that pointed to it show up in the needs-attention inbox.Yes
list_draftsList your drafts, newest first.No
get_draftRead one draft in full.No
update_draftAppend to a draft, rewrite it, or start a new one.Yes
discard_draftDelete a draft.Yes
file_draftSave a draft as a record in a collection and clear the draft.Yes

The five draft operations are not available to bots, and bots get only the two file reads: list_files and read_file. See Files and images for how the agent works with files.

When the agent uses a draft in an answer, it is instructed to say the content came from a draft, since drafts are unfinished notes.

Read-only context tools

Beyond the workspace, the agent can read sources you attach and the web:

What the agent does not have

The agent has no Bash or other shell. In the workspace it reads and writes only through the operations above, which log every write; it can write plain-text files but not images, PDFs, or other binary files, and it never reads their contents. Outside the workspace, its file reads are limited to linked folders, and it can't write there. Your files leave your machine only as context sent to the model provider.

Collections marked as encrypted are refused by every workspace operation, for every provider, whether or not they are unlocked, so the contents of its notes and other files don't reach the model. The agent can still see that the collection exists and the names of its notes and files. See Encrypted collections.

Approval mode

The panel has two modes, auto and manual. Auto is the default. In manual mode, every write in the table above waits for your approval. The diff you review comes from dry-running the actual write without applying it, so it shows the exact bytes that would land on disk. An approval left unanswered for 5 minutes is denied, and the agent is told you rejected the change.

Conversations

Conversations with the agent are stored on this Mac, in ~/.intabula/agent/, outside the workspace, so a synced or shared workspace does not carry them. You can browse them on the Conversations page in the sidebar, find them from the ⌘K palette, and continue any of them. The agent can find past conversations through search_vault.

A conversation enters the workspace only when you save it as a record: with the Save as record… button on the Conversations page, or by asking the agent, which uses save_conversation. The exchange becomes the record's body, and the provider, model, and dates become fields.

The activity feed

Every agent write is logged to an activity feed with a before-and-after snapshot of the affected file (for text; a binary file's move or delete is logged without one). You can open any entry as a diff to see what changed.