Skip to content

execute_custom_rules ​

read-only No side effects on server state.

Execute all custom rules against code or a file.

Arguments ​

ArgumentTypeRequiredDescription
pathstring—Absolute filesystem path to the file to analyze (maximum 500000 bytes). An empty string is treated the same as omitting the field.
codestring—Source code content to analyze directly (maximum 500000 characters; alternative to path). Either path or code must be provided.
languagestring—Optional: programming language for filtering rules

Example ​

json
{
  "name": "execute_custom_rules",
  "arguments": {}
}

Generated from TOOL_DEFINITIONS in src/server/tools.ts — do not edit by hand. Source: tools.ts.