Data sources
A data source is a set of typed SQLite tables that the agent creates and canvas apps query. Use one when an app should show real records instead of data pasted into its code: a triage board over tickets, a dashboard fed by a connector, or a small internal tool that saves notes. One data source can serve several apps and canvases.
https://app.inspect.com/canvas/data-sources lists the data sources you can see, filterable by Type, Available to, and Owner, with the canvases each one is attached to. Open one to browse its tables and rows. The page is read-only; you create and change data sources by asking the agent.
Requirements
- Canvas enabled for your organization.
- A writable session and a user account that isn't read-only, to create or change data sources.
- For syncs and connector actions, the connector connected. Syncs use the creator's connection; actions in apps use each viewer's own.
Kinds of data
- A snapshot holds records the agent writes from an upload, a tool result, or an existing app. It never refreshes on its own.
- A connector sync calls one connector tool on a schedule and maps the result into one table. It refreshes every 5 to 1,440 minutes.
- App state is rows that apps write through a read-write attachment (decisions, notes, assignments). It changes when someone writes.
- Tool actions are buttons in an app that run a declared connector or Inspect tool and can store the result. They run when someone clicks.
A source can combine these, for example a synced issues table plus a separate triage_notes table that apps write. Keep app-written fields out of a table that a replace sync rewrites.
Ask for one
Describe the records, where they come from, and how fresh they need to be:
Build a canvas triage board over open Linear bugs for the Payments team.
Sync them every 30 minutes, and let me save an owner and a note per bug.The agent creates the source, runs the first sync, checks sample rows, attaches the source to the canvas under an alias, and points the app at it.
Visibility and access
A private source, the default, is visible only to its creator. A public source is visible to everyone in your organization.
Only the creator can update, write to, refresh, or delete a source. Anyone who can see it can query it.
Attached data is readable by every canvas viewer
Attaching a data source to a canvas lets everyone who can view that canvas read its rows through the canvas, even if the source itself is private. Check who the canvas is shared with before you attach sensitive data.
A canvas attaches a source under an alias with read or read_write access. Only the source's creator can attach it with read_write. Apps write through a read_write attachment only for viewers who can edit the canvas. Detaching keeps the source and its rows.
Syncs
A sync stores one connector tool call: the connector, the tool, fixed arguments, the destination table, a dot path to the array of records, and a column-to-path mapping.
replaceswaps the table's rows for each result.upsertmerges by primary key and never removes rows missing from a later result.- A sync returns at most 10,000 rows and must finish within 60 seconds.
- It doesn't follow pagination or run code. Fixed timestamps in the arguments keep fetching the same window.
- Inspect runs the first sync when the sync is created or changed. Ask the agent to refresh a source to sync it immediately.
- A sync runs as its creator, with the connector settings of the session that set it up.
Some failures pause a sync until someone fixes them: the connector was removed, the creator disconnected it or left the organization, or the original session is gone. A refresh that succeeds resumes a paused sync.
Private connectors and private connector tools can't be synced into a data source. Slack companion tools can't run in syncs or app actions; they only run inside sessions.
Apps and viewers
Apps query attached sources by alias with read-only SQL. A query returns 100 rows by default and up to 1,000. Queries re-run for every viewer when the data changes.
For sources with a sync or actions, each signed-in viewer gets their own copy of the results, per app. Opening the app syncs with the viewer's own connector account, and action results stay private to that viewer. A viewer who hasn't connected the connector sees Connect your <connector> account in Settings → Connectors, then retry. There's no option to run as the source's creator. Rows the agent or apps wrote directly stay shared across viewers.
Two app settings control freshness:
- Refresh now in the canvas top bar re-fetches data for the open app.
- Data refresh while open sets an interval, at least 60 seconds, that refreshes while the frame is visible. Inspect doesn't refresh data for viewers who aren't looking.
A manual sync from inside an app runs at most once a minute per viewer.
Buttons that call tools
An action declares a tool, fixed arguments, and named parameters the app can fill in. An app runs it only on a click, and only through a read_write attachment. Actions can call connector tools or built-in Inspect tools, for example starting a research session with a fixed prompt. Each action can run at most once every two seconds.
Actions always run as the signed-in viewer, with their own connections and permissions. A built-in Inspect action also requires the viewer to own the session that defined it, except list_inspect_sessions, search_inspect_documentation, and read_inspect_documentation, which any viewer can run.
Schema rules
- Up to 32 tables per source.
- Up to 64 columns per table.
- 1 to 8 primary key columns, not nullable.
- Up to 500 rows per write.
- SQL statements up to 20,000 characters.
- Names up to 100 characters.
- Descriptions up to 1,000 characters.
Column types are text, integer, real, boolean (stored as 0 or 1), timestamp (ISO 8601 text), and json (serialized text). Table and column names use lowercase letters, digits, and underscores and start with a letter.
Schema changes are additive. You can add tables and nullable columns, but you can't remove, retype, or re-key anything. For an incompatible change, ask the agent to create a new source, fill it, and repoint the apps that should use it.
Deleting
Deleting a source removes its rows and detaches it from every canvas; apps using it stop loading data. A source created for a specific app is deleted automatically when the last app using it is deleted. Standalone sources stay until their creator deletes them.
Troubleshooting
Canvas isn't enabled for your organization.
Ask from a writable session.
Ask the creator to attach it, or attach it with read.
Writes and actions need a read_write attachment.
The creator reconnects the connector, then refreshes.
Use a non-private connector or tool, or store a snapshot instead.
Narrow the tool arguments.
Added columns must be nullable.
Connector-backed data needs a signed-in viewer; shared previews can't show it.