get_instances
Retrieve all active virtual Ubuntu desktop instances managed by Scrapybara MCP for real-time monitoring and 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)The handler function for the 'get_instances' tool. It retrieves all running Scrapybara instances using the ScrapybaraClient and returns them as a JSON string in the response 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 requires no parameters.export const GetInstancesSchema = z.object({});
- src/index.ts:79-82 (registration)Registration of the 'get_instances' tool in the ListToolsRequestHandler response, including name, description, and input schema.name: "get_instances", description: "Get all running Scrapybara instances.", inputSchema: zodToJsonSchema(GetInstancesSchema), },