Verify an edited file or range
verify_changeVerify a changed file or line range to detect AI-code defects (hallucinations, unfinished code) and security bugs (secrets, vulnerabilities). Returns a JSON verdict.
Instructions
Verify a changed file/range for AI-code defects and security bugs.
Returns a narrow, versioned JSON verdict containing AI-code trust findings such as hallucinated references, unfinished generated code, stale references, disabled controls, and dependency hallucinations (checked by default; pass include_dependency_hallucinations=False to skip the registry lookups), plus high/critical security findings (category "security") and hard-coded secrets (category "secret", values redacted) in the selected file/range. Pass include_security_findings=False to skip the security and secret checks.
Requires SKYLOS_API_KEY: this tool returns an authentication error unless the MCP server is started with SKYLOS_API_KEY set. Without a key only analyze works (5 calls/day). The local CLI needs no key: skylos verify <file> and skylos agent install-hooks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | File inside `path` to check; omit to check `path`. | |
| path | No | Project root, or a single file to check. | . |
| confidence | No | Minimum confidence (0-100) for dead-code findings. Higher values report fewer, surer candidates; 60 is the CLI default. | |
| line_range | No | Lines to check in `file`, as "START:END" or "START-END" (e.g. "10:40"), or one line number. | |
| contract_path | No | Path to a repo-specific AI-code contract file; omit to use the project's default contract if it has one. | |
| exclude_folders | No | Extra folder names to skip, comma-separated (e.g. "migrations,scripts"). Added to the default excludes. | |
| project_context | No | Also load the rest of the project to resolve cross-file references (slower; may reduce unresolved-reference findings). | |
| contract_enabled | No | False disables contract discovery and checks. Omit contract_path when False; combining them is rejected. | |
| include_security_findings | No | Include high and critical security findings and hard-coded secrets in the verdict. | |
| include_dependency_hallucinations | No | Check imported packages against the package registries. False skips these network calls. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |