Install
openclaw skills install upload-fileMUST be used for any browser file upload task. Provides reliable, step-by-step automation for uploading files via agent-browser CLI. Includes strict execution protocol, fallback strategies, and path normalization.
openclaw skills install upload-fileAutomates file uploads to web pages using agent-browser CLI with high reliability.
You MUST follow strict state-machine execution:
Follow this exact sequence:
agent-browser open <url>
agent-browser wait 2000
If page is slow: agent-browser wait --load networkidle
Try in order:
If all fail: agent-browser snapshot
Preferred selector: agent-browser upload "[type=file]" <file-path>
If selector known: agent-browser upload "<selector>" <file-path>
agent-browser snapshot
Check:
If failed → retry upload once
Priority:
Use for robust execution:
python scripts/upload_file.py <url> <file-path> [selector] [wait_ms]