get-application-list
Retrieve a paginated list of applications from the AdsPower browser management system to view and manage available browser profiles.
Instructions
Get the list of applications
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | The size of the page |
Implementation Reference
- src/handlers/application.ts:6-14 (handler)The handler function that implements the core logic of the 'get-application-list' tool. It makes an API request to fetch the list of applications using axios and formats the response as a JSON string.async getApplicationList({ size }: GetApplicationListParams) { const params = new URLSearchParams(); if (size) { params.set('page_size', size.toString()); } const response = await axios.get(`${LOCAL_API_BASE}${API_ENDPOINTS.GET_APPLICATION_LIST}`, { params }); return `Application list: ${JSON.stringify(response.data.data.list, null, 2)}`; }
- src/utils/toolRegister.ts:46-47 (registration)The registration of the 'get-application-list' tool in the MCP server, linking the name, description, input schema, and handler function.server.tool('get-application-list', 'Get the list of applications', schemas.getApplicationListSchema.shape, wrapHandler(applicationHandlers.getApplicationList));
- src/types/schemas.ts:159-161 (schema)The Zod schema defining the input parameters for the 'get-application-list' tool, which includes an optional 'size' parameter for pagination.getApplicationListSchema: z.object({ size: z.number().optional().describe('The size of the page') }).strict(),