Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 1.49 KB

files.md

File metadata and controls

27 lines (23 loc) · 1.49 KB

Upload and download

bsk upload @e3 --file ./report.pdf --session <id>
bsk download @e3 --out ./report.pdf --session <id>

Upload discloses the file to the site; download accepts site-controlled bytes. Use agent-local paths, not browser-internal staging paths.

  • Default upload (--mode input) accepts either the observed @eN ref of the visible upload button/label (preferred — clicks the trigger and intercepts hidden input[type=file] choosers such as Layui/Upload widgets, including inside iframes) or a --selector / ref targeting input[type=file] directly (assigns files without clicking, even when display: none).
  • If reason=file_input_not_activated and effect_state=none, re-observe. Try --mode drop once only on a clear attachment target such as a drop zone or composer, never whitespace or an ambiguous container. Otherwise follow human-help rules. There is no automatic fallback between mechanisms.
  • Never retry or switch upload modes for effect_state=unknown or committed. A successful drop proves dispatch, not site acceptance; observe the attachment.
  • Download refuses overwrite by default; add --overwrite only when replacement is intended. Consult each command's help for other flags.
  • For download directory conflicts with other extensions, see human steps and recovery.

Remote upload/download are unsupported. In MCP, call bsk_interact with action: "upload" or "download" (out, overwrite).