1
---
2
name: flowstudio-power-apps-canvas-read
3
description: >-
4
Inspect, audit and diagnose Power Apps canvas apps through FlowStudio MCP:
5
control trees, formulas, data sources and their columns, formula checks, a
6
quality score, version diffs, and what the published app actually contains.
7
Load this skill when asked to: find the formula or control behind a
8
behavior, check formulas for errors, list data sources and columns, score an
9
app's quality, compare versions, find when something broke, or confirm what
10
users are running. Requires a FlowStudio MCP subscription; see https://mcp.flowstudio.app
11
---
12
13
# Reading and Diagnosing Power Apps Canvas Apps with FlowStudio MCP
14
15
A read-only process for finding out what a canvas app contains, what is wrong
16
with it, and what changed between versions. Nothing in this skill stages or
17
pushes anything.
18
19
**Prerequisite**: The `flowstudio-power-apps-canvas-mcp` skill (sessions, draft versus
20
live, timeouts). Connection setup is in the `flowstudio-power-automate-mcp` skill.
21
Subscribe at https://mcp.flowstudio.app
22
23
---
24
25
## Source of Truth
26
27
> **Always call `tool_search` with `"skill:canvas-app"` first** to confirm tool
28
> names and parameter schemas. They change between server versions.
29
> This skill covers behavior the schemas cannot tell you. Tool behavior was
30
> checked on the production server on 2026-11-20; lines marked "on a real app"
31
> come from customer apps built between August and November 2026. If what a
32
> response shows actually happened disagrees with this file, the response
33
> wins. The server's general guidance text does not override the warnings
34
> here.
35
36
---
37
38
## Order of Calls
39
40
1. `list_canvas_apps`: find the app id.
41
2. `get_canvas_app`: screens, data sources, package sizes, App Checker
42
findings, and the session.
43
3. `list_canvas_controls`: the control tree, names and types only. Cheap.
44
- `under: "<screen or control>"` narrows to one subtree.
45
- `search: "<text>"` matches names and types in the app and the catalog.
46
4. `describe_canvas_control` with `name`: every formula on that control, its
47
parent, and the package file it lives in. `depth: "all"` returns the
48
subtree up to 400 controls, the fastest way to read a screen. If the reply
49
says `truncated: true`, describe its containers one at a time.
50
5. `get_canvas_app_sources`: data sources with columns. Pass `dataSource` for
51
one source in full.
52
6. `check_canvas_formula` with no `formula`: compiles every formula in the
53
app in one call.
54
7. `score_canvas_app`: quality score and ranked fixes.
55
56
`describe_canvas_control` returns the formulas the app actually uses, already
57
resolved. You do not need to read the package JSON to find a property's value.
58
59
---
60
61
## What `get_canvas_app` Tells You
62
63
- `screens`, `screenCount`, `dataSources`, `sizes`.
64
- `hasUnpublishedDraft`: someone pushed or saved without publishing.
65
- `appChecker`: Microsoft's App Checker findings **from the last Power Apps
66
Studio save**. Tool edits do not refresh it, so it can name screens that no
67
longer exist, and on a real app 13 compile errors showed as zero findings
68
here. Treat it as history, not current state.
69
- `readOnlyView`: present when you asked for a `version` or `definition`
70
other than the one your session is based on. You are viewing that state,
71
but edits apply to `session.basedOnVersion`.
72
73
---
74
75
## Data Sources
76
77
`get_canvas_app_sources` returns, per source:
78
79
- the name to use in formulas (a Dataverse table shows its display name, for
80
example `Contacts` for the `contact` table);
81
- column names and types, choice values for choice columns, the key column;
82
- for SharePoint: whether it can filter or sort, the filter functions it
83
supports, and `serverPagingOnly`;
84
- which connection feeds it.
85
86
A Dataverse table also brings one entry per choice column (`OptionSetInfo`)
87
and a views entry, so the catalog can run to dozens of rows for one table.
88
Flows and connectors (`ServiceInfo`) carry no columns.
89
90
The schema comes from the app package as last saved. If a SharePoint list or
91
Dataverse table has gained columns since, `refreshDataSource` (see
92
`flowstudio-power-apps-canvas-edit`) re-reads it.
93
94
---
95
96
## Checking Formulas
97
98
`check_canvas_formula` runs Microsoft's Power Fx compiler. Pass
99
`environmentName` and `app` so the scope is built from the app's real controls
100
and columns. Add `screen` to narrow the scope to one screen, and `control` to
101
put `Self` and `Parent` in scope. With neither `formula` nor `formulas` it
102
checks every formula in the app.
103
104
It reliably caught, in testing:
105
106
- a missing closing bracket, with the character position;
107
- a misspelled column in a SharePoint list or Dataverse table;
108
- a control that had since been renamed;
109
- an output property the control does not have (for example `.Value` on the
110
new modern text input, which outputs `.Text`).
111
112
SharePoint choice columns (`Status.Value`), person columns and
113
`Patch(list, Defaults(list), {...})` check clean on 2026-11-20 (earlier
114
versions of the checker flagged them).
115
116
It reports these as problems when they are not:
117
118
- connector calls such as `Office365Users.MyProfileV2()` and flow calls such
119
as `'Greeting-Flow'.Run(...)` ("unknown or unsupported function");
120
- a reference to a control on another screen, even in a whole-app check
121
(Power Apps allows it);
122
- `TriggerOutput.Keypress` and similar enum values the checker was not given;
123
every new modern text input has one;
124
- typed functions on a collection column, such as
125
`Text(ThisItem.Amount, "$0.00")`, because collection columns are not in the
126
package;
127
- `Value`, the output column of `Distinct` in current apps: it says `Value`
128
is "not recognised". (It also rejects `Result`, which is right in a current
129
app; older apps, where `Result` is the name, were not tested.)
130
131
It misses these, or reports them only vaguely:
132
133
- `Navigate(...)` in a screen's `OnVisible`. The checker does not know which
134
property a formula is for, and a dry run `setProperty` gives no warning
135
either; Studio reported it as an error on a real app.
136
- A column named in quotes, as in `Sort(Distinct(list, Origin), "Result")`. A
137
quoted name is a text constant, so nothing is sorted. The checker shows only
138
a general "Arguments were rejected" line that does not name the column.
139
That line usually follows another finding; when it is the only one and an
140
argument holds a quoted column name, suspect this mistake.
141
142
`check_canvas_formula` findings are warnings and never block an edit. Judge
143
each one. (`update_canvas_app` does refuse one kind of formula: unbalanced
144
brackets or quotes; see `flowstudio-power-apps-canvas-edit`.)
145
146
`check_canvas_formula` with `layout: true` lists layout suggestions instead,
147
mostly from Microsoft's layout guidance and some from FlowStudio's own
148
measurements. Each names its source.
149
150
---
151
152
## Scoring
153
154
`score_canvas_app` scores the app 0-10 across function, data, feedback,
155
errors and recovery, layout, scrolling, responsiveness, navigation, forms,
156
accessibility, copy, first use, typography, color, consistency, performance,
157
and trust and privacy. `toImprove` ranks fixes by score gain. `screen`
158
narrows the findings list; the score stays the whole app's. It always scores
159
the current state (staged edits included) and takes no `version`. Every push
160
and publish response also carries the score.
161
162
`certainty: "heuristic"` findings can be wrong for a given app. `"certain"`
163
ones come from the app's structure, but on 2026-11-20 it marked the column
164
controls of a new `Table` as zero-size, and whether they really were was not
165
checked. Check before deleting or resizing anything.
166
167
---
168
169
## Versions and Diffs
170
171
- `list_canvas_app_versions`: `isLive: true` is what users run. Drafts are
172
versioned too. `top` defaults to 20; if no returned row has `isLive: true`,
173
call again with a larger `top` (the reply's `count` is the total).
174
- `get_canvas_app`, `list_canvas_controls`, `describe_canvas_control`,
175
`get_canvas_app_sources`, `get_canvas_app_files` and `check_canvas_formula`
176
take `version` (an id from that list) or
177
`definition: "published" | "draft" | "latest"`. Reading an old version does
178
not disturb the session.
179
- **With no `definition`, or `definition: "latest"`, a read shows your
180
session's base plus your staged edits.** With nothing staged that is the
181
head (the newest saved version, whatever its state); after a push the head
182
is your draft, so it shows unpublished work as if users had it. If the app
183
was saved after you staged something, it still shows your old base: read
184
the head by its `version` id. Pass `definition: "published"` for what users
185
run. `"draft"` is the newest version marked `Draft` only, so it skips Studio
186
autosaves and publishes.
187
- `lifeCycleId: "Published"` on an app in `list_canvas_apps` describes the app
188
record, not a version. Only `isLive` in the versions list says what users
189
run.
190
- `diff_canvas_app` takes `from` and `to`: a version id, or `published`,
191
`draft`, `session` (your staged edits) or `base` (the version your session
192
started from). `name` limits it to one screen.
193
- `base` to `session` is what you are about to push.
194
- `published` to `session` is everything the next publish would release,
195
including unpublished work someone else left in the base.
196
- `base` to the head's version id (the newest row in
197
`list_canvas_app_versions`, or the `liveHead` a refusal gives you) is what
198
moved under you. `base` to `draft` misses Studio autosaves and publishes.
199
200
Reading a diff: trust the per-control changes more than the summary.
201
202
- `screens[].propertiesChanged` gives control, property, `from` and `to`.
203
- A renamed screen shows as one screen removed and one added, and its file can
204
appear in both `files.added` and `files.removed`.
205
- Controls inside an added screen are not counted in `summary.controlsAdded`;
206
look at `screensAdded[].controls`. Controls inside a removed screen may be
207
missing from the counts the same way.
208
- `identical: true` covers control trees only. Check `files` for data sources,
209
settings (`Properties.json`) and connections (`References/*`). A warning
210
about unreadable screens means the diff is incomplete.
211
- For `base` to `session`, the byte counts under `files.changed` are not
212
reliable. Use them only between two saved versions.
213
214
To find when something broke, read the property at successive versions with
215
`describe_canvas_control` and `version`.
216
217
---
218
219
## Confirming What Is Live
220
221
Users run the last published version. A Studio tab's editor and its preview
222
(Play, F5) run the copy that tab loaded. To state what users see:
223
224
1. `list_canvas_app_versions` and take the `isLive: true` version, or pass
225
`definition: "published"`.
226
2. `describe_canvas_control` on the control at that version.
227
228
If a screenshot disagrees with your read, ask where it came from. A Studio tab
229
opened before your last push shows an old copy. Publishing takes a few seconds
230
to reach users, and an app someone already has open may need a reload.
231
232
---
233
234
## Package Files
235
236
`get_canvas_app_files` with no `paths` lists every file; with `paths` it
237
returns content (text inline, images as base64). `offset` and `length` are in
238
bytes and apply to every path in the call, so read large files one at a time.
239
A window can end in the middle of a multi-byte character (a dash or curly
240
quote), which shows as `�`; that is the window, not damage.
241
242
| File | Holds |
243
|---|---|
244
| `Controls/<n>.json` | one screen's control tree: what the app runs |
245
| one `Controls/<n>.json`, usually `1.json` | the App object: `OnStart`, `Formulas`, `StartScreen`; edit with `update_canvas_app`, screen and control `App` |
246
| `Src/<Screen>.pa.yaml` | a YAML copy of the same controls. The app does not run from it, but Studio parses it when it opens the app |
247
| `References/DataSources.json` | data sources and their cached schema |
248
| `References/Resources.json` | images and other media the app can use by name |
249
| `Properties.json` | app settings: design size, scale to fit, and `DefaultConnectedDataSourceMaxGetRowsCount` |
250
251
**The YAML matters to Studio.** The player runs `Controls/*.json`, and the
252
server's replies call the YAML a copy regenerated from it. But Studio parses
253
`Src/*.pa.yaml` when it opens an app. On a real app (August 2026) one YAML
254
syntax error stopped Studio opening the app (`ErrOpeningDocument_UnknownError`)
255
while the player ran it fine, and a Studio that cannot open the app cannot
256
save it to repair the file. Two ways the YAML falls out of step, both seen on
257
2026-11-20:
258
259
- After a `renameScreen` edit, that screen's `Src/<Screen>.pa.yaml` was
260
rewritten with only the screen name and no controls, and later edits did not
261
rebuild it. What Studio does with that file has not been checked.
262
- A YAML file written with `update_canvas_app_files` is pushed as written while
263
the controls keep their old values.
264
265
Read controls with `describe_canvas_control`, not the YAML. Check the YAML
266
when someone says Studio will not open an app.
267
268
---
269
270
## Worth Reporting to the Person
271
272
- The head is `Autosaved` with far fewer controls than the live version:
273
someone saved a near-empty app. Do not push, publish, overwrite or replay
274
edits; see `flowstudio-power-apps-canvas-ship`.
275
- `baseMovedBy` above 0: someone else changed the app since you opened it.
276
- A screen nothing navigates to, or controls with zero size (from the score).
277
- "Records are missing": read `DefaultConnectedDataSourceMaxGetRowsCount` in
278
`Properties.json` (500 by default) and look for a `ClearCollect`, or a
279
`Filter` or `Sort` the data source cannot run itself, over a large list.
280
Such reads stop at that many rows with no error. On a real app admins saw
281
500 of 521 rows this way. Neither the checker nor the score flags it.
282
- An app that calls flows: every push reply carries `checkFlowConnections`,
283
warning that an import can break the app's link to a flow. Only Power Apps
284
Studio shows it ("Not connected"); `list_live_connections` cannot.
285
286
---
287
288
## Related Skills
289
290
- `flowstudio-power-apps-canvas-mcp`: sessions, draft versus live, timeouts and costs
291
- `flowstudio-power-apps-canvas-edit`: change what you found
292
- `flowstudio-power-apps-canvas-ship`: push and publish, recover a damaged head
293
- `flowstudio-power-automate-debug`: diagnose a flow the app calls
294