const express = require('express'); const { getAvailableTools } = require('~/server/controllers/PluginController'); const { verifyToolAuth } = require('~/server/controllers/tools'); const router = express.Router(); /** * Get a list of available tools for agents. * @route GET /agents/tools * @returns {TPlugin[]} 200 - application/json */ router.get('/', getAvailableTools); /** * Verify authentication for a specific tool * @route GET /agents/tools/:toolId/auth * @param {string} toolId - The ID of the tool to verify * @returns {{ authenticated?: boolean; message?: string }} */ router.get('/:toolId/auth', verifyToolAuth); module.exports = router;