Skip to content

Commit 46f7e35

Browse files
committed
feat: phoenix builder mcp server comunication with live preview
1 parent ec01702 commit 46f7e35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

phoenix-builder-mcp/mcp-tools.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ export function registerTools(server, processManager, wsControlServer, phoenixDe
346346
"Auto-opens the live preview panel if it is not already visible. " +
347347
"Code is evaluated via eval() in the global scope of the previewed page. " +
348348
"Note: eval() is synchronous — async/await is NOT supported. " +
349+
"Only available when an HTML file is selected in the live preview — " +
350+
"does not work for markdown or other non-HTML file types. " +
349351
"Use this to inspect or manipulate the user's live-previewed web page (e.g. document.title, DOM queries).",
350352
{
351353
code: z.string().describe("JavaScript code to execute in the live preview iframe"),

0 commit comments

Comments
 (0)