auth_with_password
Authenticate users or superusers against a PocketBase backend using email and password, with an optional collection name to target regular user or admin auth.
Instructions
Authenticate a user or superuser with email and password.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"email": "<email>",
"password": "<password>"
},
"name": "auth_with_password"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | The user's email address. | ||
| password | Yes | The user's password. | |
| collection | No | The auth collection name. Defaults to '_superusers' for admin auth. Pass a custom collection name (e.g. 'users') for regular user auth. | _superusers |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | JWT authentication token. | |
| record | Yes | The authenticated user record. May include additional custom fields. |