Skip to content

Feature: Browser download capture — return downloaded files to agent context #38519

Description

@softengineware

Summary

When a workflow triggers a browser download, agents need a reliable way to capture the downloaded artifact for subsequent tool use.

Today, downloads can complete successfully in the browser while remaining inaccessible to downstream agent steps.

Problem

This gap blocks common automation flows that depend on exported files (JSON/CSV/PDF/etc.) and forces brittle workarounds.

Proposed Solutions

Option A: Download event capture (preferred)

Return structured metadata on completed download in tool response:

{
  "ok": true,
  "download": {
    "filename": "example.json",
    "path": "/tmp/openclaw/downloads/example.json",
    "size": 2345,
    "mimeType": "application/json"
  }
}

Option B: Configurable download directory

Expose a deterministic agent-readable path:

browser:
  downloadPath: /tmp/openclaw/downloads

Option C: Dedicated browser action=download

Allow explicit wait/capture for next download event:

{ "action": "download", "profile": "openclaw", "timeoutMs": 10000 }

Related Issues

Environment

  • OpenClaw 2026.3.2 (85377a2)
  • Browser profile: openclaw (isolated Chromium)

Impact

This affects any UI automation that requires downloaded artifacts as inputs to subsequent steps. First-class download capture would remove a major reliability gap in end-to-end browser workflows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions