@mcp-browser-kit/server 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -9575,18 +9575,13 @@ server.tool(
9575
9575
  tabId: z.string().describe("Tab ID to evaluate the code in"),
9576
9576
  fnBodyCode: z.string().describe("A JavaScript function body to evaluate")
9577
9577
  },
9578
- async ({ tabId, index, fnBodyCode }) => {
9579
- const result = await rpcClient.defer(
9580
- "invokeJsFn",
9581
- tabId,
9582
- index,
9583
- fnBodyCode
9584
- );
9578
+ async ({ tabId, fnBodyCode }) => {
9579
+ const result = await rpcClient.defer("invokeJsFn", tabId, fnBodyCode);
9585
9580
  return {
9586
9581
  content: [
9587
9582
  {
9588
9583
  type: "text",
9589
- text: JSON.stringify(result)
9584
+ text: JSON.stringify(result) ?? "undefined"
9590
9585
  }
9591
9586
  ]
9592
9587
  };