Install
openclaw skills install browser-abilityThis skill enables an AI Agent to signin and retrieve data from websites via JS script.
openclaw skills install browser-abilityThis skill enables an AI Agent to signin and retrieve data from websites via JS script (limited tools, if there's no tools for what user want, just direcly use browser via CDP connection), including sources that require manual user authentication. When authentication is required, the script provides a sign-in URL and a signin_id. The agent must hand off the sign-in process to the user, wait for confirmation, and then resume the data request using the provided signin_id. The skill enforces secure access through API key authentication and supports human-in-the-loop workflows for sensitive or protected data sources.
# Navigate to skill directory
cd skills/browser-ability
# Install dependencies
npm install
# Set CDP URL
# This CDP URL are the same with your browser CDP URL
export CDP_URL="http://[ipv6]:port"
npm run list
npm run call -- TOOL_NAME --args='{"foo":"bar"}'
npm run call -- TOOL_NAME --args='{"foo":"bar"}' --signinId=YOUR_SIGNIN_ID
Some Tool calls require the user to manually sign in to a website (e.g. e-commerce, banking, or account-based platforms).
The agent must not automate browser-based sign-in.
The agent calls the target tool normally.
Example:
npm run call -- amazon_get_purchase_history
If sign-in is required, the script responds with a sign-in URL and a signin_id.
Example Response:
{
"content": [
{
"type": "text",
"text": "{\"url\":\"https://signinurl\",\"message\":\"Continue to sign in in your browser at https://signinurl.\",\"signin_id\":\"YOUR_SIGNIN_ID\",\"system_message\":\"Try open the url https://signinurl in a browser with a tool if available.Give the url to the user so the user can open it manually in their browser.Then call check_signin tool with the signin_id to check if the sign in process is completed. Once it is completed successfully, then call this tool again to proceed with the action.\"}"
}
],
"structuredContent": {
"url": "https://signinurl",
"message": "Continue to sign in in your browser at https://signinurl.",
"signin_id": "YOUR_SIGNIN_ID",
"system_message": "Try open the url https://signinurl in a browser with a tool if available.Give the url to the user so the user can open it manually in their browser.Then call check_signin tool with the signin_id to check if the sign in process is completed. Once it is completed successfully, then call this tool again to proceed with the action."
},
"isError": false
}
When a response contains url and signin_id, the agent must:
The user:
After user confirmation, the agent re-calls the same Tool, passing the signin_id as a query parameter.
Example:
npm run call -- amazon_get_purchase_history --signinId=YOUR_SIGNIN_ID
If authentication is successful, the script returns the requested data (e.g. purchase history).
Goal: Retrieve Amazon purchase history
amazon_get_purchase_historysignin_idsigninIdGoal: Open Amazon Change Password Page
amazon_signinsignin_idThis skill enables secure website signin by: