safari-devtools-mcp 1.2.0 → 1.2.1

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.
Files changed (56) hide show
  1. package/build/src/index.d.ts.map +1 -1
  2. package/build/src/index.js +30 -79
  3. package/build/src/index.js.map +1 -1
  4. package/build/src/tools/console.d.ts +1 -13
  5. package/build/src/tools/console.d.ts.map +1 -1
  6. package/build/src/tools/console.js +82 -67
  7. package/build/src/tools/console.js.map +1 -1
  8. package/build/src/tools/cookies.d.ts +1 -20
  9. package/build/src/tools/cookies.d.ts.map +1 -1
  10. package/build/src/tools/cookies.js +126 -111
  11. package/build/src/tools/cookies.js.map +1 -1
  12. package/build/src/tools/css.d.ts +1 -6
  13. package/build/src/tools/css.d.ts.map +1 -1
  14. package/build/src/tools/css.js +51 -45
  15. package/build/src/tools/css.js.map +1 -1
  16. package/build/src/tools/input.d.ts +1 -63
  17. package/build/src/tools/input.d.ts.map +1 -1
  18. package/build/src/tools/input.js +300 -253
  19. package/build/src/tools/input.js.map +1 -1
  20. package/build/src/tools/network.d.ts +1 -13
  21. package/build/src/tools/network.d.ts.map +1 -1
  22. package/build/src/tools/network.js +82 -67
  23. package/build/src/tools/network.js.map +1 -1
  24. package/build/src/tools/page-content.d.ts +1 -11
  25. package/build/src/tools/page-content.d.ts.map +1 -1
  26. package/build/src/tools/page-content.js +100 -83
  27. package/build/src/tools/page-content.js.map +1 -1
  28. package/build/src/tools/pages.d.ts +1 -30
  29. package/build/src/tools/pages.d.ts.map +1 -1
  30. package/build/src/tools/pages.js +237 -202
  31. package/build/src/tools/pages.js.map +1 -1
  32. package/build/src/tools/screenshot.d.ts +1 -6
  33. package/build/src/tools/screenshot.d.ts.map +1 -1
  34. package/build/src/tools/screenshot.js +72 -65
  35. package/build/src/tools/screenshot.js.map +1 -1
  36. package/build/src/tools/script.d.ts +1 -6
  37. package/build/src/tools/script.d.ts.map +1 -1
  38. package/build/src/tools/script.js +40 -33
  39. package/build/src/tools/script.js.map +1 -1
  40. package/build/src/tools/scroll.d.ts +1 -10
  41. package/build/src/tools/scroll.d.ts.map +1 -1
  42. package/build/src/tools/scroll.js +48 -40
  43. package/build/src/tools/scroll.js.map +1 -1
  44. package/build/src/tools/snapshot.d.ts +1 -11
  45. package/build/src/tools/snapshot.d.ts.map +1 -1
  46. package/build/src/tools/snapshot.js +77 -68
  47. package/build/src/tools/snapshot.js.map +1 -1
  48. package/build/src/tools/storage.d.ts +1 -17
  49. package/build/src/tools/storage.d.ts.map +1 -1
  50. package/build/src/tools/storage.js +113 -98
  51. package/build/src/tools/storage.js.map +1 -1
  52. package/build/src/tools/types.d.ts +9 -1
  53. package/build/src/tools/types.d.ts.map +1 -1
  54. package/build/src/tools/types.js +3 -1
  55. package/build/src/tools/types.js.map +1 -1
  56. package/package.json +7 -8
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAC,SAAS,EAAC,MAAM,yCAAyC,CAAC;AAElE,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAqG/C,wBAAgB,qBAAqB,IAAI;IACvC,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,YAAY,CAAC;CACtB,CAkWA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAC,SAAS,EAAC,MAAM,yCAAyC,CAAC;AAClE,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAgC/C,wBAAgB,qBAAqB,IAAI;IACvC,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,YAAY,CAAC;CACtB,CAkCA"}
@@ -6,19 +6,33 @@
6
6
  */
7
7
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
8
8
  import { SafariDriver } from './SafariDriver.js';
9
- // Tool handlers
10
- import { listConsoleMessages, listConsoleMessagesSchema, getConsoleMessage, getConsoleMessageSchema, clearConsole, clearConsoleSchema, } from './tools/console.js';
11
- import { listNetworkRequests, listNetworkRequestsSchema, getNetworkRequest, getNetworkRequestSchema, clearNetwork, clearNetworkSchema, } from './tools/network.js';
12
- import { evaluateScript, evaluateScriptSchema } from './tools/script.js';
13
- import { takeScreenshot, takeScreenshotSchema } from './tools/screenshot.js';
14
- import { takeSnapshot, takeSnapshotSchema, waitFor, waitForSchema, } from './tools/snapshot.js';
15
- import { listPages, listPagesSchema, selectPage, selectPageSchema, closePage, closePageSchema, newPage, newPageSchema, navigatePage, navigatePageSchema, resizePage, resizePageSchema, handleDialog, handleDialogSchema, } from './tools/pages.js';
16
- import { getComputedStyle, getComputedStyleSchema } from './tools/css.js';
17
- import { getCookies, getCookiesSchema, setCookie, setCookieSchema, deleteCookie, deleteCookieSchema, } from './tools/cookies.js';
18
- import { getStorage, getStorageSchema, setStorage, setStorageSchema, deleteStorage, deleteStorageSchema, } from './tools/storage.js';
19
- import { click, clickSchema, clickAt, clickAtSchema, rightClick, rightClickSchema, selectOption, selectOptionSchema, hover, hoverSchema, fill, fillSchema, fillForm, fillFormSchema, typeText, typeTextSchema, drag, dragSchema, pressKey, pressKeySchema, uploadFile, uploadFileSchema, } from './tools/input.js';
20
- import { scroll, scrollSchema, scrollToElement, scrollToElementSchema, } from './tools/scroll.js';
21
- import { getPageContent, getPageContentSchema, getHtmlSource, getHtmlSourceSchema, extractLinks, extractLinksSchema, extractMeta, extractMetaSchema, } from './tools/page-content.js';
9
+ // Tool modules — each exports a `tools` array
10
+ import { tools as consoleTools } from './tools/console.js';
11
+ import { tools as networkTools } from './tools/network.js';
12
+ import { tools as scriptTools } from './tools/script.js';
13
+ import { tools as screenshotTools } from './tools/screenshot.js';
14
+ import { tools as snapshotTools } from './tools/snapshot.js';
15
+ import { tools as pagesTools } from './tools/pages.js';
16
+ import { tools as pageContentTools } from './tools/page-content.js';
17
+ import { tools as scrollTools } from './tools/scroll.js';
18
+ import { tools as cssTools } from './tools/css.js';
19
+ import { tools as cookieTools } from './tools/cookies.js';
20
+ import { tools as storageTools } from './tools/storage.js';
21
+ import { tools as inputTools } from './tools/input.js';
22
+ const allTools = [
23
+ ...consoleTools,
24
+ ...networkTools,
25
+ ...scriptTools,
26
+ ...screenshotTools,
27
+ ...snapshotTools,
28
+ ...pagesTools,
29
+ ...pageContentTools,
30
+ ...scrollTools,
31
+ ...cssTools,
32
+ ...cookieTools,
33
+ ...storageTools,
34
+ ...inputTools,
35
+ ];
22
36
  export function createSafariMcpServer() {
23
37
  const server = new McpServer({
24
38
  name: 'safari-devtools-mcp',
@@ -29,11 +43,10 @@ export function createSafariMcpServer() {
29
43
  },
30
44
  });
31
45
  const driver = new SafariDriver();
32
- // Helper to register a tool
33
- function registerTool(name, description, schema, handler) {
34
- server.tool(name, description, schema, async (params) => {
46
+ for (const tool of allTools) {
47
+ server.tool(tool.name, tool.description, tool.schema, async (params) => {
35
48
  try {
36
- return await handler(params, driver);
49
+ return await tool.handler(params, driver);
37
50
  }
38
51
  catch (error) {
39
52
  return {
@@ -48,68 +61,6 @@ export function createSafariMcpServer() {
48
61
  }
49
62
  });
50
63
  }
51
- // =====================
52
- // DEBUGGING TOOLS (highest priority)
53
- // =====================
54
- registerTool('list_console_messages', 'List all console messages for the currently selected page since the last navigation.', listConsoleMessagesSchema, listConsoleMessages);
55
- registerTool('get_console_message', 'Gets a console message by its ID. You can get all messages by calling list_console_messages.', getConsoleMessageSchema, getConsoleMessage);
56
- registerTool('clear_console', 'Clear all captured console messages.', clearConsoleSchema, clearConsole);
57
- registerTool('list_network_requests', 'List all network requests for the currently selected page since the last navigation. Includes historical requests made before monitoring started (with limited detail).', listNetworkRequestsSchema, listNetworkRequests);
58
- registerTool('get_network_request', 'Gets a network request by its reqid from the listed requests.', getNetworkRequestSchema, getNetworkRequest);
59
- registerTool('clear_network', 'Clear all captured network requests.', clearNetworkSchema, clearNetwork);
60
- registerTool('evaluate_script', 'Evaluate a JavaScript function inside the currently selected page. Returns the response as JSON, so returned values have to be JSON-serializable.', evaluateScriptSchema, evaluateScript);
61
- registerTool('take_screenshot', 'Take a screenshot of the page or element.', takeScreenshotSchema, takeScreenshot);
62
- registerTool('take_snapshot', 'Take a text snapshot of the currently selected page based on the DOM/a11y tree. The snapshot lists page elements along with a unique identifier (uid). Always use the latest snapshot. Prefer taking a snapshot over taking a screenshot.', takeSnapshotSchema, takeSnapshot);
63
- // =====================
64
- // NAVIGATION TOOLS
65
- // =====================
66
- registerTool('list_pages', 'Get a list of pages (tabs) open in Safari.', listPagesSchema, listPages);
67
- registerTool('select_page', 'Select a page as context for future tool calls.', selectPageSchema, selectPage);
68
- registerTool('close_page', 'Closes a page by its ID. The last open page cannot be closed.', closePageSchema, closePage);
69
- registerTool('new_page', 'Open a new tab and load a URL.', newPageSchema, newPage);
70
- registerTool('navigate_page', 'Go to a URL, or back, forward, or reload.', navigatePageSchema, navigatePage);
71
- registerTool('wait_for', 'Wait for the specified text to appear on the selected page.', waitForSchema, waitFor);
72
- registerTool('resize_page', "Resizes the selected page's window so that the page has specified dimensions.", resizePageSchema, resizePage);
73
- registerTool('handle_dialog', 'If a browser dialog was opened, use this command to handle it.', handleDialogSchema, handleDialog);
74
- // =====================
75
- // PAGE CONTENT TOOLS
76
- // =====================
77
- registerTool('get_page_content', 'Get the page title, URL, and visible text content.', getPageContentSchema, getPageContent);
78
- registerTool('get_html_source', 'Get the full HTML source of the current page.', getHtmlSourceSchema, getHtmlSource);
79
- registerTool('extract_links', 'Extract all links from the current page with their text and href.', extractLinksSchema, extractLinks);
80
- registerTool('extract_meta', 'Extract meta tags from the current page (og:, twitter:, description, etc.).', extractMetaSchema, extractMeta);
81
- // =====================
82
- // SCROLL TOOLS
83
- // =====================
84
- registerTool('scroll', 'Scroll the page in a direction by a given amount of pixels.', scrollSchema, scroll);
85
- registerTool('scroll_to_element', 'Scroll an element into view by its UID from a snapshot.', scrollToElementSchema, scrollToElement);
86
- // =====================
87
- // CSS TOOLS
88
- // =====================
89
- registerTool('get_computed_style', 'Get computed CSS styles for an element by its UID from a snapshot. Returns commonly useful properties by default, or specify exact properties.', getComputedStyleSchema, getComputedStyle);
90
- // =====================
91
- // COOKIE & STORAGE TOOLS
92
- // =====================
93
- registerTool('get_cookies', 'Get browser cookies for the current page. Optionally filter by name or domain.', getCookiesSchema, getCookies);
94
- registerTool('set_cookie', 'Set a browser cookie with the given name, value, and optional attributes.', setCookieSchema, setCookie);
95
- registerTool('delete_cookie', 'Delete a cookie by name, or delete all cookies when no name is provided.', deleteCookieSchema, deleteCookie);
96
- registerTool('get_storage', 'Read from localStorage or sessionStorage. Returns all entries or a specific key.', getStorageSchema, getStorage);
97
- registerTool('set_storage', 'Write a key-value pair to localStorage or sessionStorage.', setStorageSchema, setStorage);
98
- registerTool('delete_storage', 'Delete a key from localStorage or sessionStorage, or clear all entries.', deleteStorageSchema, deleteStorage);
99
- // =====================
100
- // INPUT TOOLS
101
- // =====================
102
- registerTool('click', 'Clicks on the provided element.', clickSchema, click);
103
- registerTool('click_at', 'Clicks at the provided coordinates.', clickAtSchema, clickAt);
104
- registerTool('right_click', 'Right-click (context click) on the provided element.', rightClickSchema, rightClick);
105
- registerTool('select_option', 'Select an option from a <select> dropdown by value or visible label.', selectOptionSchema, selectOption);
106
- registerTool('hover', 'Hover over the provided element.', hoverSchema, hover);
107
- registerTool('fill', 'Type text into an input, text area or select an option from a <select> element.', fillSchema, fill);
108
- registerTool('fill_form', 'Fill out multiple form elements at once.', fillFormSchema, fillForm);
109
- registerTool('type_text', 'Type text using keyboard into a previously focused input.', typeTextSchema, typeText);
110
- registerTool('drag', 'Drag an element onto another element.', dragSchema, drag);
111
- registerTool('press_key', 'Press a key or key combination. Use this when other input methods like fill() cannot be used.', pressKeySchema, pressKey);
112
- registerTool('upload_file', 'Upload a file through a provided file input element.', uploadFileSchema, uploadFile);
113
64
  return { server, driver };
114
65
  }
115
66
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAC,SAAS,EAAC,MAAM,yCAAyC,CAAC;AAElE,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAE/C,gBAAgB;AAChB,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,iBAAiB,EACjB,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,iBAAiB,EACjB,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,cAAc,EAAE,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAC,cAAc,EAAE,oBAAoB,EAAC,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,OAAO,EACP,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,SAAS,EACT,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,OAAO,EACP,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAE,sBAAsB,EAAC,MAAM,gBAAgB,CAAC;AACxE,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,YAAY,EACZ,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,EACL,WAAW,EACX,OAAO,E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,2DAA2D,EAC3D,gBAAgB,EAChB,UAAU,CACX,CAAC;IAEF,YAAY,CACV,gBAAgB,EAChB,yEAAyE,EACzE,mBAAmB,EACnB,aAAa,CACd,CAAC;IAEF,wBAAwB;IACxB,cAAc;IACd,wBAAwB;IAExB,YAAY,CAAC,OAAO,EAAE,iCAAiC,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;IAE7E,YAAY,CACV,UAAU,EACV,qCAAqC,EACrC,aAAa,EACb,OAAO,CACR,CAAC;IAEF,YAAY,CACV,aAAa,EACb,sDAAsD,EACtD,gBAAgB,EAChB,UAAU,CACX,CAAC;IAEF,YAAY,CACV,eAAe,EACf,sEAAsE,EACtE,kBAAkB,EAClB,YAAY,CACb,CAAC;IAEF,YAAY,CAAC,OAAO,EAAE,kCAAkC,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;IAE9E,YAAY,CACV,MAAM,EACN,iFAAiF,EACjF,UAAU,EACV,IAAI,CACL,CAAC;IAEF,YAAY,CACV,WAAW,EACX,0CAA0C,EAC1C,cAAc,EACd,QAAQ,CACT,CAAC;IAEF,YAAY,CACV,WAAW,EACX,2DAA2D,EAC3D,cAAc,EACd,QAAQ,CACT,CAAC;IAEF,YAAY,CACV,MAAM,EACN,uCAAuC,EACvC,UAAU,EACV,IAAI,CACL,CAAC;IAEF,YAAY,CACV,WAAW,EACX,+FAA+F,EAC/F,cAAc,EACd,QAAQ,CACT,CAAC;IAEF,YAAY,CACV,aAAa,EACb,sDAAsD,EACtD,gBAAgB,EAChB,UAAU,CACX,CAAC;IAEF,OAAO,EAAC,MAAM,EAAE,MAAM,EAAC,CAAC;AAC1B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAC,SAAS,EAAC,MAAM,yCAAyC,CAAC;AAClE,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAG/C,8CAA8C;AAC9C,OA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AAC;IAElC,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;QAC5B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAC,MAAM,EAAC,EAAE;YACnE,IAAI,CAAC;gBACH,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YAC5C,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO;oBACL,OAAO,EAAE;wBACP;4BACE,IAAI,EAAE,MAAe;4BACrB,IAAI,EAAE,UAAU,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;yBACzE;qBACF;oBACD,OAAO,EAAE,IAAI;iBACd,CAAC;YACJ,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAC,MAAM,EAAE,MAAM,EAAC,CAAC;AAC1B,CAAC"}
@@ -3,17 +3,5 @@
3
3
  * Mirrors chrome-devtools-mcp tool names: list_console_messages, get_console_message
4
4
  */
5
5
  import { z } from 'zod';
6
- import type { ToolHandler } from './types.js';
7
- export declare const listConsoleMessagesSchema: {
8
- pageSize: z.ZodOptional<z.ZodNumber>;
9
- pageIdx: z.ZodOptional<z.ZodNumber>;
10
- types: z.ZodOptional<z.ZodArray<z.ZodEnum<["log", "debug", "info", "error", "warn", "trace", "assert", "dir", "table", "clear", "count", "timeEnd"]>, "many">>;
11
- };
12
- export declare const listConsoleMessages: ToolHandler;
13
- export declare const clearConsoleSchema: {};
14
- export declare const clearConsole: ToolHandler;
15
- export declare const getConsoleMessageSchema: {
16
- msgid: z.ZodNumber;
17
- };
18
- export declare const getConsoleMessage: ToolHandler;
6
+ export declare const tools: import("./types.js").ToolDef<z.ZodRawShape>[];
19
7
  //# sourceMappingURL=console.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../src/tools/console.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,YAAY,CAAC;AAiB5C,eAAO,MAAM,yBAAyB;;;;CAuBrC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,WAgBjC,CAAC;AAEF,eAAO,MAAM,kBAAkB,IAAK,CAAC;AAErC,eAAO,MAAM,YAAY,EAAE,WAU1B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;CAMnC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,WAgB/B,CAAC"}
1
+ {"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../src/tools/console.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAsBtB,eAAO,MAAM,KAAK,+CA8FjB,CAAC"}
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import { z } from 'zod';
6
6
  import { formatConsoleMessage, formatConsoleMessages, } from '../formatters/ConsoleFormatter.js';
7
+ import { defineTool } from './types.js';
7
8
  const FILTERABLE_LEVELS = [
8
9
  'log',
9
10
  'debug',
@@ -18,71 +19,85 @@ const FILTERABLE_LEVELS = [
18
19
  'count',
19
20
  'timeEnd',
20
21
  ];
21
- export const listConsoleMessagesSchema = {
22
- pageSize: z
23
- .number()
24
- .int()
25
- .positive()
26
- .optional()
27
- .describe('Maximum number of messages to return. When omitted, returns all messages.'),
28
- pageIdx: z
29
- .number()
30
- .int()
31
- .min(0)
32
- .optional()
33
- .describe('Page number to return (0-based). When omitted, returns the first page.'),
34
- types: z
35
- .array(z.enum(FILTERABLE_LEVELS))
36
- .optional()
37
- .describe('Filter messages to only return messages of the specified types. When omitted or empty, returns all messages.'),
38
- };
39
- export const listConsoleMessages = async (params, driver) => {
40
- const allLogs = await driver.getConsoleLogs();
41
- const filtered = await driver.getConsoleLogs({
42
- types: params.types,
43
- pageSize: params.pageSize,
44
- pageIdx: params.pageIdx,
45
- });
46
- return {
47
- content: [
48
- {
49
- type: 'text',
50
- text: formatConsoleMessages(filtered, allLogs.length),
51
- },
52
- ],
53
- };
54
- };
55
- export const clearConsoleSchema = {};
56
- export const clearConsole = async (_params, driver) => {
57
- await driver.clearConsoleLogs();
58
- return {
59
- content: [
60
- {
61
- type: 'text',
62
- text: 'Console messages cleared.',
63
- },
64
- ],
65
- };
66
- };
67
- export const getConsoleMessageSchema = {
68
- msgid: z
69
- .number()
70
- .describe('The msgid of a console message on the page from the listed console messages'),
71
- };
72
- export const getConsoleMessage = async (params, driver) => {
73
- const log = await driver.getConsoleMessage(params.msgid);
74
- if (!log) {
75
- return {
76
- content: [
77
- {
78
- type: 'text',
79
- text: `Console message with msgid=${params.msgid} not found.`,
80
- },
81
- ],
82
- };
83
- }
84
- return {
85
- content: [{ type: 'text', text: formatConsoleMessage(log) }],
86
- };
87
- };
22
+ export const tools = [
23
+ defineTool({
24
+ name: 'list_console_messages',
25
+ description: 'List all console messages for the currently selected page since the last navigation.',
26
+ schema: {
27
+ pageSize: z
28
+ .number()
29
+ .int()
30
+ .positive()
31
+ .optional()
32
+ .describe('Maximum number of messages to return. When omitted, returns all messages.'),
33
+ pageIdx: z
34
+ .number()
35
+ .int()
36
+ .min(0)
37
+ .optional()
38
+ .describe('Page number to return (0-based). When omitted, returns the first page.'),
39
+ types: z
40
+ .array(z.enum(FILTERABLE_LEVELS))
41
+ .optional()
42
+ .describe('Filter messages to only return messages of the specified types. When omitted or empty, returns all messages.'),
43
+ },
44
+ handler: async (params, driver) => {
45
+ const allLogs = await driver.getConsoleLogs();
46
+ const filtered = await driver.getConsoleLogs({
47
+ types: params.types,
48
+ pageSize: params.pageSize,
49
+ pageIdx: params.pageIdx,
50
+ });
51
+ return {
52
+ content: [
53
+ {
54
+ type: 'text',
55
+ text: formatConsoleMessages(filtered, allLogs.length),
56
+ },
57
+ ],
58
+ };
59
+ },
60
+ }),
61
+ defineTool({
62
+ name: 'get_console_message',
63
+ description: 'Gets a console message by its ID. You can get all messages by calling list_console_messages.',
64
+ schema: {
65
+ msgid: z
66
+ .number()
67
+ .describe('The msgid of a console message on the page from the listed console messages'),
68
+ },
69
+ handler: async (params, driver) => {
70
+ const log = await driver.getConsoleMessage(params.msgid);
71
+ if (!log) {
72
+ return {
73
+ content: [
74
+ {
75
+ type: 'text',
76
+ text: `Console message with msgid=${params.msgid} not found.`,
77
+ },
78
+ ],
79
+ };
80
+ }
81
+ return {
82
+ content: [{ type: 'text', text: formatConsoleMessage(log) }],
83
+ };
84
+ },
85
+ }),
86
+ defineTool({
87
+ name: 'clear_console',
88
+ description: 'Clear all captured console messages.',
89
+ schema: {},
90
+ handler: async (_params, driver) => {
91
+ await driver.clearConsoleLogs();
92
+ return {
93
+ content: [
94
+ {
95
+ type: 'text',
96
+ text: 'Console messages cleared.',
97
+ },
98
+ ],
99
+ };
100
+ },
101
+ }),
102
+ ];
88
103
  //# sourceMappingURL=console.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"console.js","sourceRoot":"","sources":["../../../src/tools/console.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EACL,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,mCAAmC,CAAC;AAG3C,MAAM,iBAAiB,GAAG;IACxB,KAAK;IACL,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,QAAQ;IACR,KAAK;IACL,OAAO;IACP,OAAO;IACP,OAAO;IACP,SAAS;CACD,CAAC;AAEX,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CACP,2EAA2E,CAC5E;IACH,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AiB,GAAgB,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;IACrE,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,KAAe,CAAC,CAAC;IACnE,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,8BAA8B,MAAM,CAAC,KAAK,aAAa;iBAC9D;aACF;SACF,CAAC;IACJ,CAAC;IAED,OAAO;QACL,OAAO,EAAE,CAAC,EAAC,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,oBAAoB,CAAC,GAAG,CAAC,EAAC,CAAC;KACpE,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"console.js","sourceRoot":"","sources":["../../../src/tools/console.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EACL,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;AAEtC,MAAM,iBAAiB,GAAG;IACxB,KAAK;IACL,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,QAAQ;IACR,KAAK;IACL,OAAO;IACP,OAAO;IACP,OAAO;IACP,SAAS;CACD,CAAC;AAEX,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,UAAU,CAAC;QACT,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EACT,sFAAsF;QACxF,MAAM,EAAE;YACN,QAAQ,EAAE,CAAC;iBACR,MAAM,EAAE;iBACR,GAAG,EAAE;iBACL,QAAQ,EAAE;iBACV,QAAQ,EAAE;iBACV,QAAQ,CACP,2EAA2E,CAC5E;YACH,OAAO,EAAE,CAAC;iBACP,MAAM,EAAE;iBACR,GAAG,EAAE;iBACL,GAAG,CAAC,CAAC,CAAC;i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AAE,MAAe,EAAE,IAAI,EAAE,oBAAoB,CAAC,GAAG,CAAC,EAAC,CAAC;aACpE,CAAC;QACJ,CAAC;KACF,CAAC;IAEF,UAAU,CAAC;QACT,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,sCAAsC;QACnD,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;YACjC,MAAM,MAAM,CAAC,gBAAgB,EAAE,CAAC;YAChC,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAe;wBACrB,IAAI,EAAE,2BAA2B;qBAClC;iBACF;aACF,CAAC;QACJ,CAAC;KACF,CAAC;CACH,CAAC"}
@@ -2,24 +2,5 @@
2
2
  * Cookie management tools.
3
3
  */
4
4
  import { z } from 'zod';
5
- import type { ToolHandler } from './types.js';
6
- export declare const getCookiesSchema: {
7
- name: z.ZodOptional<z.ZodString>;
8
- domain: z.ZodOptional<z.ZodString>;
9
- };
10
- export declare const getCookies: ToolHandler;
11
- export declare const setCookieSchema: {
12
- name: z.ZodString;
13
- value: z.ZodString;
14
- domain: z.ZodOptional<z.ZodString>;
15
- path: z.ZodOptional<z.ZodString>;
16
- secure: z.ZodOptional<z.ZodBoolean>;
17
- httpOnly: z.ZodOptional<z.ZodBoolean>;
18
- expiry: z.ZodOptional<z.ZodNumber>;
19
- };
20
- export declare const setCookie: ToolHandler;
21
- export declare const deleteCookieSchema: {
22
- name: z.ZodOptional<z.ZodString>;
23
- };
24
- export declare const deleteCookie: ToolHandler;
5
+ export declare const tools: import("./types.js").ToolDef<z.ZodRawShape>[];
25
6
  //# sourceMappingURL=cookies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cookies.d.ts","sourceRoot":"","sources":["../../../src/tools/cookies.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,gBAAgB;;;CAW5B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,WAuCxB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;CAwB3B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,WAmBvB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;CAK9B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,WAiB1B,CAAC"}
1
+ {"version":3,"file":"cookies.d.ts","sourceRoot":"","sources":["../../../src/tools/cookies.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,KAAK,+CAyIjB,CAAC"}