UNPKG

insite-mcp

Version:

MCP server for browser automation with 52 tools using Playwright

56 lines 1.83 kB
/** * Wait and synchronization tools for Browser MCP Server */ export const waitTools = [ { name: 'wait_for_element', description: 'Wait for an element to become visible on the page', inputSchema: { type: 'object', properties: { selector: { type: 'string', description: 'CSS selector for the element to wait for', }, timeout: { type: 'number', description: 'Timeout in milliseconds', default: 30000, }, state: { type: 'string', enum: ['visible', 'hidden', 'attached', 'detached'], description: 'Element state to wait for', default: 'visible', }, }, required: ['selector'], }, }, { name: 'wait_for_navigation', description: 'Wait for page navigation to complete', inputSchema: { type: 'object', properties: { url: { type: 'string', description: 'URL pattern to wait for (optional)', }, timeout: { type: 'number', description: 'Timeout in milliseconds', default: 30000, }, waitUntil: { type: 'string', enum: ['load', 'domcontentloaded', 'networkidle', 'commit'], description: 'Wait condition for navigation completion', default: 'load', }, }, required: [], }, }, ]; //# sourceMappingURL=wait-tools.js.map