360 Secure SkillHub
360 安全技能中心

Browser Download

该 Skill 教 ADA 使用 openclaw 的 browser 工具从任意网页下载文件:先用 browser snapshot 或 evaluate 定位下载按钮的 ref/selector,再以 openclaw browser --action download 命令下载到 /mnt/storage/ada_projects/downloads/ 目录;对 canvas 等复杂元素提…

pbseiya
pbseiya
热度 79.15
最近更新 2026-05-11 17:28:58
分类:自动化依赖:联网浏览搜索 / 代码执行 / 读写文件应用场景:工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add browser-download
Metadata
name
browser-download
description
Teaches ADA how to perform file downloads using the browser tool.
metadata
{"clawdbot":{"emoji":"📥","requires":{"bins":["openclaw"]},"primaryEnv":""}}

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.
  • relayPort 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.
  2. Execute Download Action: Use the following CLI command structure:
openclaw browser --action download --targetId "<TAB_ID>" --ref "<REF_ID>" --path "/mnt/storage/ada_projects/downloads/<FILENAME>"

Alternative: JavaScript Click

If the download button is inside a canvas or complex element, you can trigger it via evaluation:

() => {
  const btn = document.querySelector('button[aria-label="Download"]');
  if (btn) btn.click();
  return 'clicked';
}

Storage Directory

Always save downloaded files to: /mnt/storage/ada_projects/downloads/