get_instances
Retrieve all active Scrapybara MCP server instances to manage virtual Ubuntu desktops for web browsing, code execution, and system control.
Instructions
Get all running Scrapybara instances.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:146-159 (handler)Handler function for the 'get_instances' tool within the CallToolRequestSchema request handler. It creates a ScrapybaraClient, calls getInstances() with abort signal, and returns the instances as JSON-formatted text content.case "get_instances": { const instances = await client.getInstances({ abortSignal: currentController.signal, }); return { content: [ { type: "text", text: JSON.stringify(instances, null, 2), } as TextContent, ], }; }
- src/schemas.ts:12-12 (schema)Zod schema definition for the 'get_instances' tool input, which is an empty object indicating no input parameters are required.export const GetInstancesSchema = z.object({});
- src/index.ts:78-82 (registration)Registration of the 'get_instances' tool in the ListToolsRequestSchema handler, including name, description, and input schema reference.{ name: "get_instances", description: "Get all running Scrapybara instances.", inputSchema: zodToJsonSchema(GetInstancesSchema), },