Integration · Databases
AI agents for PocketBase
List collections and their fields, find records with PocketBase filters, read, create, update and delete records on your own PocketBase server.
- Actions
- 6
- Read
- 3
- Write
- 3
Actions
What your agents can do in PocketBase
List collections and their fields, find records with PocketBase filters, read, create, update and delete records on your own PocketBase server (v0.23 or later), signed in as a superuser with a long-lived impersonate token. Superusers bypass collection API rules: every call can reach every record.
Read 3
Look things up. Nothing changes.
List collections
Lists the server's collections (tables) with their schemas.
Find records
Lists records of a collection, filtered, sorted and paged.
Get a record
Reads one record by its 15-character ID.
Write 3
Create, change or send.
Create a record
Adds a record to a collection.
Update a record
Changes some fields of a record by its ID and leaves the others as they are.
Delete a recordDeletes data
Deletes one record by its ID, for good, with its files.
A person can approve first
Any write action can be set to wait for a person's approval before it runs, so an agent asks before it changes anything. Actions that delete data ask first by default.
Connection
How it connects
Connect it once in the console, then give it to the agents and workflows that need it.
Paste an API key from your PocketBase account.
What you enter
- Superuser impersonate token
Settings
- PocketBase address
Kept safe
- Credentials are stored encrypted with your organization's own keys.
- They are opened only by the process that makes the call, at the moment it runs, and never go into a prompt or the browser.
- Calls go only to the tool's own servers.
Ideas
Ideas to start with
Starting points made only from the actions above. Mix them with any other tool your agents can use.
- 01
Ask about your PocketBase data
Ask a question in plain words. The agent can list collections, find records or get a record in PocketBase, then answers with what it found.
- 02
Let an agent update PocketBase
Have the agent create a record or update a record in PocketBase as part of a larger task. Turn on approval and a person signs off on each change first.
- 03
Share what it finds in Slack
Give one agent PocketBase and Slack: it can list collections in PocketBase and post a summary to a Slack channel in the same run.
FAQ
PocketBase and MyDeepAgents
Can MyDeepAgents connect to PocketBase?
Yes. The PocketBase connector has 6 actions: 3 read and 3 make changes. Your agents can call them as tools, and your workflows can run them as steps.
How do I connect PocketBase?
Paste an API key from your PocketBase account. You'll need: Superuser impersonate token. The connection also asks for: PocketBase address. Credentials are stored encrypted with your organization's own keys and are opened only at the moment of a call.
Can an agent change data in PocketBase without asking?
Only if you let it. Each of the 3 actions that change data can be set to wait for a person's approval before it runs, and the one that deletes data asks first by default.
Can I use PocketBase in workflows as well as agents?
Yes. Every PocketBase action also works as a step in a workflow, and the same connection serves your agents and your workflows.
Early access
Put PocketBase to work
Connect it in a few minutes, give an agent the actions it needs, and decide which changes wait for a person.