Proposal: Preview mode #2147
nablex
started this conversation in
Ideas - General
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.
-
I want to build an agent/assistant that has no default internal tools. Everything should be an MCP tool, allowing maximum flexibility in configuring an environment.
In agent mode this is already possible, but in assistant mode I'm lacking a key feature: preview.
In my previous implementation, while I supported MCP, I also provided internal tools for things like file editing. There were two key reasons for this that I'm hoping to solve with preview mode:
I propose:
preview: true)previewResource: ui://preview/{previewId}). If no endpoint is given, the input/output of the tool call is deemed sufficient to inform the user._metafield to indicate that the tool call should be run in preview mode (preview: true)previewIdin the_metasection (perhaps alsopreview: truein case no resources are used)When preview is toggled at runtime, the MCP server does a dry-run of the call, provides (as much as possible) the same output as it would when actually running and optionally uses a resource to visually inform the user.
This means:
Beta Was this translation helpful? Give feedback.
All reactions