Describe exposed previews as opening in the task Page view
This commit is contained in:
@@ -30,7 +30,7 @@ type exposePortArgs struct {
|
||||
func (m *Manager) exposePortTool(l *live) mcp.Tool {
|
||||
return mcp.Tool{
|
||||
Name: "expose_port",
|
||||
Description: "Show the human a server you are running, such as a dev server, as a link above the task's tabs that opens it in a new window. " +
|
||||
Description: "Show the human a server you are running, such as a dev server, as a link above the task's tabs that opens it in the task's Page view beside its transcript. " +
|
||||
"Start the server yourself first (in the background), listening on 127.0.0.1 (not 0.0.0.0 or localhost) on any free port. " +
|
||||
"byre then serves it on the same port of byre's tailnet node, and the human's app opens it through a local link. " +
|
||||
"name labels it in the tab (\"web\", \"storybook\"); exposing a name or port again replaces the earlier one. " +
|
||||
@@ -98,7 +98,7 @@ func (m *Manager) exposePort(ctx context.Context, l *live, raw json.RawMessage)
|
||||
m.stopPreview(port)
|
||||
}
|
||||
|
||||
return fmt.Sprintf("Exposed %q: port %d of byre's tailnet node proxies to %s, and the human sees a link to it above the task's tabs.", name, args.Port, addr), nil
|
||||
return fmt.Sprintf("Exposed %q: port %d of byre's tailnet node proxies to %s, and the human sees a link above the task's tabs that opens it in the Page view beside its transcript.", name, args.Port, addr), nil
|
||||
}
|
||||
|
||||
func (m *Manager) servePreview(port int) error {
|
||||
|
||||
Reference in New Issue
Block a user