[Question]: How can I format an MCP response so that it is treated directly as a Artifact? #8460
Unanswered
jmbowman1107
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All!
How can I format an MCP response so that it is created directly as an Artifact instead of passing the artifact syntax back into the LLM to be processed?
Currently my MCP server is outputting something like below
[
{
"type": "text",
"text": ":::artifact{identifier="some-raw-html" type="text/html" title="Artifact Title"}\r\n
\r\n<!DOCTYPE html>\r\n<html>SOME HTML GOES HERE</html>\r\n
\r\n:::"}
]
This syntax is being fed back into the model which then outputs an artifact exactly as the MCP tool says.. but in my case, there is quite a bit of HTML (interactive plots), and its takes a very long time for it to be output by the model, not to mention all the extra token usage.
Is there something wrong with my MCP output, or is this just not supported by Libre chat?
Beta Was this translation helpful? Give feedback.
All reactions