get-application-list
Retrieve a paginated list of applications using the AdsPower LocalAPI MCP Server. Specify the page size to manage and access application data efficiently.
Instructions
Get the list of applications
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | The size of the page |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"size": {
"description": "The size of the page",
"type": "number"
}
},
"type": "object"
}
Implementation Reference
- src/handlers/application.ts:5-14 (handler)The main handler function for 'get-application-list' tool. It accepts optional 'size' parameter, constructs query params, fetches application list from local API, and returns formatted JSON string.export const applicationHandlers = { 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/types/schemas.ts:159-161 (schema)Zod schema defining input parameters for the 'get-application-list' tool, specifically optional 'size' number.getApplicationListSchema: z.object({ size: z.number().optional().describe('The size of the page') }).strict(),
- src/utils/toolRegister.ts:46-47 (registration)Registration of the 'get-application-list' tool on the MCP server, linking name, description, schema, and wrapped handler.server.tool('get-application-list', 'Get the list of applications', schemas.getApplicationListSchema.shape, wrapHandler(applicationHandlers.getApplicationList));
- src/types/application.ts:1-2 (schema)TypeScript interface for input parameters of getApplicationList handler, matching the Zod schema.export interface GetApplicationListParams { size?: number;