Skip to content

messages: expose MXC URLs for attachments (or add --json output) #2

Description

@schickling-assistant

Problem

When listing messages that contain attachments, the CLI only shows the filename and size:

1. User A [] • 2/14/2026, 10:01:37 AM
   [no text]
   img some-image.jpeg (181.7KB)

The download command exists and accepts an MXC URL, but there's no way to get the MXC URL from the messages output. This makes it impossible to programmatically download attachments from messages.

Suggestion

Either:

  1. Add --json output to messages that includes the full MXC URL for each attachment, or
  2. Show the MXC URL in the text output next to the filename (e.g. img some-image.jpeg (181.7KB) mxc://...)

Option 1 would be most useful for scripting and AI agent workflows.

Use case

Programmatically downloading image attachments from chat messages (e.g. for processing by scripts or AI agents).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions