import{s as e}from"./chunk-Bj-mKKzh.js";import{n as t}from"./jsx-runtime-CiQ1k8xo.js";import{i as n}from"./route-scope-CLteRG86.js";import{t as r}from"./apps-DBd5dYzG.js";import{n as i}from"./app-shell-tab-controller-cnh2C4j9.js";import{t as a,y as o}from"./mcp-capability-view-frame-BaOdmDqW.js";var s=e(t(),1);function c(e,t,{activate:c=!0,instanceId:u=crypto.randomUUID(),isPreview:d,readHostResource:f,tabId:p=l(t,u),title:m=t.title,toolArguments:h}={}){return n(e.value)==null?null:(i.openTab(e,a,{icon:(0,s.createElement)(r,{className:`icon-xs shrink-0`}),id:p,props:{instanceId:u,...f==null?{}:{readHostResource:f},...h==null?{}:{toolArguments:h},view:t},title:m,activate:c,...d==null?{}:{isPreview:d}}),c&&o(e),p)}function l(e,t){return`mcp-capability:${e.hostId}:${e.server}:${e.tool.name}:${t}`}export{c as t};
//# sourceMappingURL=mcp-capability-thread-side-panel-tab-B72yGYxK.js.map