search_formulas
Find matching Power Fx formulas across a canvas app by substring or regex, optionally filtering to code-only lines, specific properties, or controls. Returns control, property, and matching lines.
Instructions
Search every Power Fx formula in a canvas app for a substring (or regex=true). code_only=true ignores matches inside string literals and comments. property= restricts to one property name (e.g. 'OnSelect'); control= to controls whose name contains it. Returns control, property, and the matching lines.
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": "search_formulas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | ||
| limit | No | ||
| regex | No | ||
| source | Yes | ||
| control | No | ||
| pattern | Yes | ||
| property | No | ||
| code_only | No | ||
| case_sensitive | No |