pursIdeUsages
Identify all instances where a specific function, type, or value is used across a PureScript project using the PureScript MCP Server. Ensures accurate refactoring by showing the impact of changes across modules.
Instructions
Find everywhere a specific function, type, or value is used across the project. PREREQUISITES: IDE server running and modules loaded. Essential for refactoring - shows impact of changes. If you plan to refactor, get usages before refactoring so you can make changes to all places that function is used.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
identifier | Yes | The identifier to find usages for. | |
module | Yes | Module where the identifier is defined. | |
namespace | Yes | Namespace of the identifier. |
Input Schema (JSON Schema)
{
"additionalProperties": false,
"properties": {
"identifier": {
"description": "The identifier to find usages for.",
"type": "string"
},
"module": {
"description": "Module where the identifier is defined.",
"type": "string"
},
"namespace": {
"description": "Namespace of the identifier.",
"enum": [
"value",
"type",
"kind"
],
"type": "string"
}
},
"required": [
"module",
"namespace",
"identifier"
],
"type": "object"
}