Log in as a Foran customer
foran_loginLog in to Foran with your phone number and password to get a session key for managing carts, placing orders, and using account tools.
Instructions
Log in with the customer's own Foran phone number and password (the same as the Foran app). Returns a session_key for cart, order and account tools. Only use credentials the customer typed themselves in this conversation. On a local install, credentials may instead come from FORAN_PHONE / FORAN_PASSWORD environment variables (call with no arguments).
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": "foran_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | No | Pakistani mobile, e.g. 03001234567 or +923001234567. | |
| password | No |