connect
Authenticate with PocketBase as a superuser, user, or via impersonation, or check the current session identity. Sets the active identity for subsequent tool calls.
Instructions
USE WHEN you need to authenticate or check the current session identity.
EXAMPLES:
Check identity: connect(as_="status")
Superuser: connect(as_="superuser", email="admin@x.com", password="...")
User: connect(as_="user", collection="users", email="u@x.com", password="...")
Impersonate: connect(as_="impersonate", user_id="abc123")
NEXT STEPS: All subsequent tool calls in this session use the new identity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_ | No | superuser: authenticate with admin creds; user: authenticate as a collection record; impersonate: assume another user's identity (superuser required); status: report current identity. | status |
| No | Email or username for 'user' or 'superuser' auth. | ||
| user_id | No | Record id to impersonate (action='impersonate'). | |
| password | No | Password for 'user' or 'superuser' auth. | |
| collection | No | Collection name for action='user' (e.g. 'users'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||