Generate and download a report
statica_reportGenerates a report from the latest analysis revision, waits for completion, and downloads it in DOC, PDF, HTML, or Excel format to a chosen path or the project's default reports folder.
Instructions
Ask the server to generate a report from the latest revision, wait for it, and download it (default /.static/reports/). Can take minutes. Kinds: 1 project summary, 2 remaining defects, 3 suppressed defects, 4 by rule, 5 by ruleset, 6 by severity, 7 by file, 8 module metrics, 9 file metrics, 10 class metrics, 11 function metrics, 12 suppressed metrics. On failure 'stage' tells how far it got.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectDir": "<projectDir>",
"format": "<format>",
"kinds": "<kinds>"
},
"name": "statica_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | Where to save the file. An existing file there is replaced. Omit for the default location. | |
| kinds | Yes | Report kinds 1-12. | |
| format | Yes | Report format. | |
| timeout | No | Seconds to wait for generation (default 600). | |
| projectDir | Yes | Absolute path of the project directory being analyzed (usually the session's working directory). |