# Function: resolveScope()
resolveScope(
sql,cursorPosition):ScopeInfo
Defined in: packages/core/src/utils/IntelliSenseApi.ts:89
Resolve scope information at cursor position
Provides comprehensive information about available tables, CTEs, and columns at the specified cursor position for intelligent completion suggestions.
Parameters ​
sql ​
string
SQL text to analyze
cursorPosition ​
Cursor position (character offset or line/column)
number | LineColumn
Returns ​
Complete scope information including available tables and columns