Skip to content

Multiline strings in JSON are hard to copy from the tool result field #658

@ln-12

Description

@ln-12

Is your feature request related to a problem? Please describe.
When returning JSON in the response of a tool, we often have the case that urls span multiple lines. By default, the string is truncated at the end:
Image

When clicking on it, the string expands to its full length:
Image

To copy the link, I need to mark the whole string and hit CMD+C at the same time as the link collapses again as soon as I let go the mouse button after selecting the string.

Describe the solution you'd like
I would like to have an option, e.g. a button next to the field, to copy it with one click. Or at least it would be nice to not collapse the string when marking it, only when actually clicking.

It would also be ok for me to have urls clickable so that they open in a new tab directly. But this would not solve the issue for non url content.

Describe alternatives you've considered
As stated above, currently it's a bit cumbersome to mark it and press CMD+C to actually copy the content.

Additional context
I am using v0.16.2 of the inspector.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions