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
pathstringAbsolute filesystem path to the file to analyze (maximum 500000 bytes). An empty string is treated the same as omitting the field.
codestringSource code content to analyze directly (maximum 500000 characters; alternative to path). Either path or code must be provided.
languagestringOptional: 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.