find_in_queries
Search all Power Query M queries for a pattern, filtering by code, strings, comments, or all scopes. Get the query, step, and line for every match to locate and fix issues.
Instructions
Search the M of every query. scope: all | code | strings | comments. Returns query, step and line for each hit.
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": {
"source": "<source>",
"pattern": "<pattern>"
},
"name": "find_in_queries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regex | No | ||
| scope | No | all | |
| source | Yes | ||
| pattern | Yes |