What Artifacts Are
An artifact is a file your agent uploads to Subtext’s cloud storage. After upload, Subtext returns a time-limited signed URL that anyone with the link can open in a browser. Typical artifact payloads include:- Screenshots captured via
live-view-screenshotduring a live browser session - Before/after image pairs that document a visual regression fix
- Log exports or JSON blobs saved from a network inspection run
- PDF or HTML documents generated as part of an automated report
doc-attach to embed an artifact URL inside a permanent evidence record, or share the URL directly in a pull request comment or ticket.
Use Cases
Bug Fix Evidence
Attach a before screenshot showing the broken state and an after screenshot showing the fix. Paste the signed URLs into the PR description so reviewers see exactly what changed.
Audit Trail
Upload exported logs or inspection results as artifacts and link them from a Proof Doc, creating a permanent, reviewable audit trail for compliance or QA sign-off.
Visual Regression Comparison
Upload the expected and actual screenshots from a failing visual test, then share both URLs in the failing-test comment for fast triage.
Ticket Attachments
When filing an issue, have your agent upload a screenshot of the error state and include the signed URL as an inline image in the ticket body.
Tools
artifact-upload
Upload base64-encoded content to cloud storage and receive a shareable signed URL.
When to use it: Any time your agent produces a file — a screenshot, a generated document, an exported log — that needs to be shared with a human or stored alongside a task record.
What it returns: A signed URL that any team member can open without authentication. The URL is time-limited; see artifact-url below for refreshing it.
artifact-url
Generate a fresh signed URL for an existing artifact by its artifact ID.
When to use it: When a previously shared URL has expired and a reviewer needs renewed access to the artifact — for example, when re-opening an old Proof Doc weeks later.
Signed URLs are time-limited by design. Store the artifact ID (returned by
artifact-upload) in your Proof Doc or ticket, not just the URL. Use artifact-url any time you need to regenerate a fresh link from that ID.Typical Workflow
1
Capture the evidence
Use
live-view-screenshot during your live browser session to take a PNG screenshot of the relevant UI state.2
Upload the artifact
Pass the base64 screenshot to
artifact-upload. Subtext stores it and returns a signed URL and an artifact ID.3
Share the URL
Paste the signed URL into a PR description, ticket comment, or Slack message. Anyone with the link can view the screenshot immediately.
4
Attach to a Proof Doc (optional)
Use
doc-attach to embed the artifact into a named section of a Proof Doc, creating a permanent evidence record that references the artifact by ID.5
Refresh if expired
If the URL expires before review is complete, call
artifact-url with the artifact ID to get a new signed link.
