get_view_definition
Retrieve the SQL definition of a SQL Server view and its referenced tables. Use this to inspect view logic and dependencies.
Instructions
Get the SQL definition of a view along with referenced tables
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": {
"viewName": "<viewName>"
},
"name": "get_view_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Schema name (default: dbo) | |
| viewName | Yes | Name of the view |