tool.ts•887 B
import { configHelperInputSchema } from './inputSchema.js';
export const configHelperTool = {
name: 'config_helper' as const,
description: `
This tool helps analyze and validate and fix CircleCI configuration files.
Parameters:
- params: An object containing:
- configFile: string - The full contents of the CircleCI config file as a string. This should be the raw YAML content, not a file path.
Example usage:
{
"params": {
"configFile": "version: 2.1\norbs:\n node: circleci/node@7\n..."
}
}
Note: The configFile content should be provided as a properly escaped string with newlines represented as \n.
Tool output instructions:
- If the config is invalid, the tool will return the errors and the original config. Use the errors to fix the config.
- If the config is valid, do nothing.
`,
inputSchema: configHelperInputSchema,
};