Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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, ], }; }
  • 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), },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Scrapybara/scrapybara-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server