analyze-cursor
Identifies and analyzes code context around a cursor position to support syntax analysis, dependency checks, and AI-assisted development workflows.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
column | Yes | Cursor column position (1-based) | |
context | Yes | Context around cursor | |
fileContent | Yes | Content of the file | |
filePath | Yes | Path to the file | |
line | Yes | Cursor line position (1-based) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"column": {
"description": "Cursor column position (1-based)",
"type": "number"
},
"context": {
"additionalProperties": false,
"description": "Context around cursor",
"properties": {
"after": {
"description": "Lines after cursor",
"items": {
"type": "string"
},
"type": "array"
},
"before": {
"description": "Lines before cursor",
"items": {
"type": "string"
},
"type": "array"
},
"target": {
"description": "Line at cursor",
"type": "string"
}
},
"required": [
"before",
"target",
"after"
],
"type": "object"
},
"fileContent": {
"description": "Content of the file",
"type": "string"
},
"filePath": {
"description": "Path to the file",
"type": "string"
},
"line": {
"description": "Cursor line position (1-based)",
"type": "number"
}
},
"required": [
"filePath",
"fileContent",
"line",
"column",
"context"
],
"type": "object"
}