queryApplist
Retrieve a paginated list of RPA applications using filters like app ID, name, or owner. Query to browse and select automation tasks.
Instructions
该接口用于分页获取RPA应用列表。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | No | RPA应用UUID | |
| size | No | 一页大小 | 30 |
| page | No | 页码 | 1 |
| ownerUserSearchKey | No | 用户账号精确匹配 | |
| appName | No | RPA应用名称模糊匹配 |
Implementation Reference
- src/baseServer.ts:41-49 (registration)Registration of the queryApplist tool for local mode. Calls this.server.tool('queryApplist', ...) with the local queryAppList schema and handler.
registerLocalTools(): void{ this.server.tool('queryApplist', i18n.t('tool.queryApplist.description'), querySchema, async ({ appId, size, page, ownerUserSearchKey, appName }) => { try { const result = await this.localService?.queryAppList(); return { content: [{ type: 'text', text: JSON.stringify(result) }]}; } catch (error) { throw new Error(i18n.t('tool.queryApplist.error')); } }); - src/baseServer.ts:88-101 (registration)Registration of the queryApplist tool for OpenAPI mode. Calls this.server.tool('queryApplist', ...) with the querySchema and handler that calls openApiService.queryAppList().
this.server.tool('queryApplist', i18n.t('tool.queryApplist.description'), querySchema, async ({ appId, size, page, ownerUserSearchKey, appName }) => { try { const result = await this.openApiService?.queryAppList({ appId, size, page, ownerUserSearchKey, appName }); return { content: [{ type: 'text', text: JSON.stringify(result) }]}; } catch (error) { throw new Error(i18n.t('tool.queryApplist.error')); } }); - src/baseServer.ts:42-48 (handler)Handler for queryApplist in local mode (lines 42-48). Async callback that calls this.localService?.queryAppList() and returns the result as JSON.
this.server.tool('queryApplist', i18n.t('tool.queryApplist.description'), querySchema, async ({ appId, size, page, ownerUserSearchKey, appName }) => { try { const result = await this.localService?.queryAppList(); return { content: [{ type: 'text', text: JSON.stringify(result) }]}; } catch (error) { throw new Error(i18n.t('tool.queryApplist.error')); } - src/baseServer.ts:88-100 (handler)Handler for queryApplist in OpenAPI mode (lines 88-100). Async callback that calls this.openApiService?.queryAppList({...}) with appId, size, page, ownerUserSearchKey, appName params.
this.server.tool('queryApplist', i18n.t('tool.queryApplist.description'), querySchema, async ({ appId, size, page, ownerUserSearchKey, appName }) => { try { const result = await this.openApiService?.queryAppList({ appId, size, page, ownerUserSearchKey, appName }); return { content: [{ type: 'text', text: JSON.stringify(result) }]}; } catch (error) { throw new Error(i18n.t('tool.queryApplist.error')); } - src/schema/openApi.ts:44-58 (schema)querySchema used by the OpenAPI registration of queryApplist. Defines appId, size, page, ownerUserSearchKey, appName params with defaults and transforms.
export const querySchema = { appId: z.string().optional().describe(i18n.t('schema.query.appId')), size: z.string() .optional() .default('30') .transform(Number) .describe(i18n.t('schema.query.size')), page: z.string() .optional() .default('1') .transform(Number) .describe(i18n.t('schema.query.page')), ownerUserSearchKey: z.string().optional().describe(i18n.t('schema.query.ownerUserSearchKey')), appName: z.string().optional().describe(i18n.t('schema.query.appName')) } as const;