UNPKG

@flowfuse/flowfuse

Version:

An open source low-code development platform

29 lines (27 loc) 1.17 kB
const { z } = require('zod') module.exports = [ { name: 'platform_list_teams', title: 'List Teams', description: 'FlowFuse platform automation tool: List all teams the authenticated user belongs to. Returns team names, slugs, IDs, and membership roles.', annotations: { readOnlyHint: true, destructiveHint: false }, inputSchema: {}, handler: async (args, { inject }) => { const response = await inject({ method: 'GET', url: '/api/v1/user/teams' }) return response } }, { name: 'platform_get_team', title: 'Get Team', description: 'FlowFuse platform automation tool: Get details of a specific team by its ID, including team type, member count, hosted instance and remote instance counts.', annotations: { readOnlyHint: true, destructiveHint: false }, inputSchema: { teamId: z.string().describe('The ID or hashid of the team') }, handler: async (args, { inject }) => { const response = await inject({ method: 'GET', url: `/api/v1/teams/${args.teamId}` }) return response } } ]