@cotestdev/mcp_playwright 0.0.22 → 0.0.23
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.
|
@@ -37,10 +37,10 @@ var import_mcpBundle = require("../../../mcpBundleImpl");
|
|
|
37
37
|
var import_tool = require("./tool");
|
|
38
38
|
var import_common = require("./common");
|
|
39
39
|
const codeSchema = import_common.baseSchema.extend({
|
|
40
|
-
code: import_mcpBundle.z.string().describe(`A
|
|
40
|
+
code: import_mcpBundle.z.string().describe(`A Typescript function containing Playwright code to execute. It will be invoked with a single argument, page, which you can use for any page interaction. For example: \`async (page) => { await page.getByRole('button', { name: 'Submit' }).click(); return await page.title(); }\``)
|
|
41
41
|
});
|
|
42
42
|
const runCode = (0, import_tool.defineTabTool)({
|
|
43
|
-
capability: "
|
|
43
|
+
capability: "extra",
|
|
44
44
|
schema: {
|
|
45
45
|
name: "browser_run_code",
|
|
46
46
|
title: "Run Playwright code",
|