T3.HTTP.Media (T3 v0.3.0)

Copy Markdown View Source

Binary assets, attachment capability uploads and browser upload/download.

Summary

Functions

Fetch an asset capability. Range headers can request byte ranges.

Fetch browser download bytes; query includes threadId, tabId and id.

Answer a browser file picker with multipart files; query includes threadId, tabId and chooser.

Submit OTLP JSON trace data. Requires orchestration operate scope.

Upload exact bytes using the relative capability URL from MCP prepare_upload.

Functions

asset(client, token, filename, opts \\ [])

Fetch an asset capability. Range headers can request byte ranges.

preview_download(client, opts \\ [])

Fetch browser download bytes; query includes threadId, tabId and id.

preview_upload(client, multipart, opts \\ [])

Answer a browser file picker with multipart files; query includes threadId, tabId and chooser.

traces(client, trace_data, opts \\ [])

Submit OTLP JSON trace data. Requires orchestration operate scope.

upload(client, relative_url, bytes, opts \\ [])

Upload exact bytes using the relative capability URL from MCP prepare_upload.