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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "connect"
}
}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 | |||