search_definitions
Search within SQL Server object definitions (procedures, functions, views) for a specific text pattern to locate source code.
Instructions
Search within object definitions (procedure/function/view source code)
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": {
"pattern": "<pattern>"
},
"name": "search_definitions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Text pattern to search for | |
| database | No | Limit search to specific database | |
| object_types | No | Object types to search: 'view', 'procedure', 'function' |