Skip to content

Force returning tool result/ressource as artifact without regenerationΒ #509

@maxschulz-COL

Description

@maxschulz-COL

Is your feature request related to a problem? Please describe.
The problem I am facing is that I am currently creating an MCP server that through tools creates artifacts (python code, html code)

There is no problem in the model receiving the outcome, but when it presents it in the chat, it essentially regenerates it which causes the following problems:

  • slight alterations
  • token usage
  • speed

Describe the solution you'd like
I would like to be able to enforce the direct return of the tool/ressource.

If using Claude desktop, I would like to even return the output as an artifact, but that is of course specific to anthropic/Claude

Examples:

  • Tool creates a custom URL, Ideally this becomes visible in chat as is, quickly and without alteration
  • Tool creates Python code, ideally this is just visible as is in the chat OR even claude artifacts

Describe alternatives you've considered
I have tried to prompt/describe my tools to enforce this, but this did not work

Additional context
I am not sure if this is the correct place to ask, but would be very keen to discuss this as I can imagine it is a common problem?

I can also help refine the problem statement a bit more if that's of interest

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Moderate issues affecting some users, edge cases, potentially valuable featurefeature requestRequest for a new feature that's not currently supportedready for workEnough information for someone to start working on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions