foldingRanges
Identify foldable regions in source code files, such as functions, classes, imports, and comments, returning their line ranges and types.
Instructions
Foldable regions in a file (functions, classes, imports, comments). Returns {startLine, endLine, kind}.
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": {
"filePath": "<filePath>"
},
"name": "foldingRanges"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Workspace or absolute file path |