pinescript_review
Review PineScript code to ensure compliance with style guide and language rules. Scan code strings, files, or directories; output violations as JSON, Markdown, or streaming chunks.
Instructions
Review PineScript code against style guide and language rules. Supports single files, directories, and streaming for large results via JSON chunks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | PineScript code to review (required when source_type=code) | |
| format | No | Output format: json (single response), markdown (formatted), stream (chunked JSON for large files/directories) | json |
| version | No | PineScript version (default: v6) | v6 |
| file_path | No | Path to PineScript file to review (required when source_type=file) | |
| recursive | No | For directory source: scan subdirectories recursively (default: true) | |
| chunk_size | No | For stream format: violations per chunk (default: 20, max: 100) | |
| source_type | No | Source type: code (string input), file (single file path), directory (scan for .pine files) | code |
| directory_path | No | Path to directory containing PineScript files (required when source_type=directory) | |
| file_extensions | No | File extensions to scan for (default: [".pine", ".pinescript"]) | |
| severity_filter | No | Filter violations by severity (default: all) | all |