jfrog_list_runtime_clusters
Retrieve a paginated list of all runtime clusters on the JFrog Platform, with options to set limits and manage pagination for efficient cluster management.
Instructions
return a list of all my runtime clusters in the jfrog platform
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | The maximum number of clusters to return | |
| next_key | No | The next key to use for pagination |
Implementation Reference
- tools/runtime.ts:60-63 (handler)Handler function for the jfrog_list_runtime_clusters tool that validates input and delegates to getAllRuntimeClusters API functionhandler: async (args: any) => { const parsedArgs = getAllRuntimeClustersSchema.parse(args); return await getAllRuntimeClusters(parsedArgs.limit); }
- schemas/runtime.ts:6-9 (schema)Zod input schema defining parameters for listing runtime clusters: limit (default 50) and optional next_key for paginationexport const getAllRuntimeClustersSchema = z.object({ limit: z.number().int().default(50).describe("The maximum number of clusters to return"), next_key: z.string().optional().describe("The next key to use for pagination") });
- tools/runtime.ts:25-34 (helper)Helper function that performs the actual API call to list runtime clusters using jfrogRequest and parses the response with the response schemaexport async function getAllRuntimeClusters(limit:number) { const response = await jfrogRequest("/runtime/api/v1/clusters",{ method: "POST", body: { limit } }); return JFrogRuntimeClustersListResponseSchema.parse(response); }
- tools/runtime.ts:90-94 (registration)Module-level registration of runtime tools array including the jfrog_list_runtime_clusters toolexport const RuntimeTools = [ getAllRuntimeClustersTool, getRuntimeClusterTool, listRunningImagesTool ];
- tools/index.ts:13-23 (registration)Global tools registration array that includes RuntimeTools (containing jfrog_list_runtime_clusters) via spread operatorexport const tools =[ ...RepositoryTools, ...BuildsTools, ...RuntimeTools, ...AccessTools, ...AQLTools, ...CatalogTools, ...CurationTools, ...PermissionsTools, ...ArtifactSecurityTools, ];