Browser Download Skill
This skill enables ADA to perform file downloads from any webpage using the browser tool.
Prerequisites
- -
openclaw CLI must be installed and gateway must be running. - INLINECODE2 must be configured correctly in
openclaw.json (Default: 18792).
How to download
To download a file from a website, follow these steps:
- 1. Find the Download Link/Button: Use
browser snapshot or browser evaluate to find the ref or selector for the download button. - Execute Download Action: Use the following CLI command structure:
CODEBLOCK0
Alternative: JavaScript Click
If the download button is inside a canvas or complex element, you can trigger it via evaluation:
CODEBLOCK1
Storage Directory
Always save downloaded files to:
INLINECODE8
浏览器下载技能
该技能使ADA能够使用browser工具从任何网页执行文件下载。
前置条件
- - 必须安装openclaw CLI,且网关必须处于运行状态。
- 必须在openclaw.json中正确配置relayPort(默认值:18792)。
下载方法
要从网站下载文件,请按以下步骤操作:
- 1. 查找下载链接/按钮:使用browser snapshot或browser evaluate查找下载按钮的ref或selector。
- 执行下载操作:使用以下CLI命令结构:
bash
openclaw browser --action download --targetId ID> --ref [ID> --path /mnt/storage/ada_projects/downloads/]
替代方案:JavaScript点击
如果下载按钮位于画布或复杂元素内部,可以通过评估触发下载:
javascript
() => {
const btn = document.querySelector(button[aria-label=Download]);
if (btn) btn.click();
return clicked;
}
存储目录
始终将下载的文件保存至:
/mnt/storage/ada_projects/downloads/