create-group
Create a browser group to organize and manage multiple browser profiles with custom fingerprints for efficient testing and automation workflows.
Instructions
Create a browser group
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupName | Yes | The name of the group to create | |
| remark | No | The remark of the group |
Implementation Reference
- src/handlers/group.ts:10-25 (handler)The createGroup handler function that constructs a request body and makes a POST API call to create a browser group, returning success message or throwing error.async createGroup({ groupName, remark }: CreateGroupParams) { const requestBody: Record<string, string> = { group_name: groupName }; if (remark !== undefined) { requestBody.remark = remark; } const response = await axios.post(`${LOCAL_API_BASE}${API_ENDPOINTS.CREATE_GROUP}`, requestBody); if (response.data.code === 0) { return `Group created successfully with name: ${groupName}${remark ? `, remark: ${remark}` : ''}`; } throw new Error(`Failed to create group: ${response.data.msg}`); },
- src/types/schemas.ts:139-142 (schema)Zod schema defining input parameters for create-group tool: groupName (required string), remark (optional string).createGroupSchema: z.object({ groupName: z.string().describe('The name of the group to create'), remark: z.string().optional().describe('The remark of the group') }).strict(),
- src/utils/toolRegister.ts:36-37 (registration)Registration of the 'create-group' tool on the MCP server, specifying name, description, input schema, and wrapped handler.server.tool('create-group', 'Create a browser group', schemas.createGroupSchema.shape, wrapHandler(groupHandlers.createGroup));