getTopLevelDeclarationNames
Extract top-level declaration names (functions, data types, type classes) from PureScript code or a file. Enables code analysis without requiring an IDE server, simplifying development tasks.
Instructions
List all main definitions in PureScript code: function names, data types, type classes, etc. Gets just the names (like 'myFunction', 'MyDataType'). Fast analysis without needing IDE server.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getTopLevelDeclarationNames"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | PureScript code string. | |
| filePath | No | Absolute path to the PureScript file. Only absolute paths are supported. |