Refresh Session Token
refresh_tokenRenews expired foodpanda session tokens by opening a login window and automatically capturing the new session after manual authentication.
Instructions
Opens a browser window to https://www.foodpanda.hk so the user can log in to their foodpanda Hong Kong account. Intercepts the session token from network requests and updates the server. Call this when: (1) other tools return a 'session token expired' or 'No session token configured' error, or (2) the user wants to switch accounts. The browser window is visible — the user logs in manually (handling any CAPTCHAs or MFA). Once logged in, the token is captured automatically and saved for future sessions. Requires a desktop session; on a headless server set FOODPANDA_HEADLESS=1 and expect to complete the login elsewhere.
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": "refresh_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | How long to wait for login in seconds (default 120). Increase if the user needs more time. |