Initial commit
This commit is contained in:
31
skills/mcp-chrome-devtools/scripts/list_pages.js
Executable file
31
skills/mcp-chrome-devtools/scripts/list_pages.js
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env node
|
||||
/**
|
||||
* MCP Server: chrome-devtools
|
||||
* Server Version: 0.10.2
|
||||
* Generated: 2025-11-23
|
||||
* Tool: list_pages
|
||||
*
|
||||
* Get a list of pages open in the browser.
|
||||
*/
|
||||
|
||||
import { program } from 'commander';
|
||||
import { callTool } from './mcp_client.js';
|
||||
|
||||
program
|
||||
.name('list_pages')
|
||||
.description('Get a list of pages open in the browser.')
|
||||
// No options required
|
||||
.parse();
|
||||
|
||||
const options = program.opts();
|
||||
|
||||
const args = {};
|
||||
|
||||
// Call the tool
|
||||
try {
|
||||
const result = await callTool('chrome-devtools', 'list_pages', args);
|
||||
console.log(result);
|
||||
} catch (error) {
|
||||
console.error('Error:', error.message);
|
||||
process.exit(1);
|
||||
}
|
||||
Reference in New Issue
Block a user