← 返回
未分类 中文

upload-file

MUST be used for any browser file upload task. Provides reliable, step-by-step automation for uploading files via agent-browser CLI. Includes strict executio...
MUST be used for any browser file upload task. Provides reliable, step-by-step automation for uploading files via agent-browser CLI. Includes strict executio...
m1ss-cell m1ss-cell 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 358
下载
💾 1
安装
1
版本
#latest

概述

Browser File Upload (Industrial-Grade)

Automates file uploads to web pages using agent-browser CLI with high reliability.


🔥 Execution Protocol (MANDATORY)

You MUST follow strict state-machine execution:

  1. Execute ONLY ONE command at a time
  2. WAIT for result before next step
  3. VERIFY success before continuing
  4. If failed → retry or fallback
  5. DO NOT skip steps
  6. DO NOT batch commands
  7. DO NOT assume elements exist

🔥 Standard Upload Pipeline (REQUIRED)

Follow this exact sequence:

Step 1 — Open Page

agent-browser open

Step 2 — Wait for Load

agent-browser wait 2000

If page is slow:

agent-browser wait --load networkidle


Step 3 — Trigger File Input

Try in order:

  1. agent-browser find text "选择文件" click
  2. agent-browser find text "上传" click
  3. agent-browser click "[type=file]"

If all fail:

agent-browser snapshot


Step 4 — Upload File

Preferred selector:

agent-browser upload "[type=file]"

If selector known:

agent-browser upload ""


Step 5 — Verify Upload (IMPORTANT)

agent-browser snapshot

Check:

  • File name appears
  • No error message
  • Input is not empty

If failed → retry upload once


🔥 Strategy Selection

Priority:

  1. ✅ Python script (MOST STABLE)
  2. ⚠️ agent-browser commands (when selector known)

🔥 Python Script Mode (Recommended)

Use for robust execution:

python scripts/upload_file.py <url> <file-path> [selector] [wait_ms]

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 17:13 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,497 📥 561,874
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,429 📥 327,025
knowledge-management

paper-architecture-diagram

m1ss-cell
自动化处理本地医学图像分割论文,提取结构解析与绘图提示,严格按步骤保存结果至指定文本文件。
★ 0 📥 390