Power Apps Canvas via FlowStudio MCP

Power Apps Canvas via FlowStudio MCP

Sets ground rules for building Power Apps canvas apps through FlowStudio MCP: edit sessions, draft versus live, long calls and timeouts.

Skill files1 file
SKILL.md242 lines
1
---
2
name: flowstudio-power-apps-canvas-mcp
3
description: >-
4
Ground rules for Power Apps canvas apps through FlowStudio MCP: the canvas
5
tools, edit sessions, draft versus live, and long calls and timeouts. Load
6
this skill first for any canvas app work, before `flowstudio-power-apps-canvas-read`,
7
`flowstudio-power-apps-canvas-edit` or `flowstudio-power-apps-canvas-ship`, and when a canvas call
8
behaves strangely: a timeout that may still have created something, a push
9
stuck importing, a session that moved, or draft-versus-live confusion.
10
Requires a FlowStudio MCP subscription; see https://mcp.flowstudio.app
11
---
12
13
# Power Apps Canvas Apps via FlowStudio MCP: Foundation
14
15
This skill is the ground rules for the canvas app tools. You open an edit
16
session, stage edits, push them as a draft, and publish. Every canvas call
17
follows the rules here, and the read, edit and ship skills build on them.
18
19
> **Requires:** A [FlowStudio](https://mcp.flowstudio.app) MCP subscription.
20
> Connection setup (endpoint, key or sign-in) is the same as for the flow
21
> tools: see the `flowstudio-power-automate-mcp` skill. The canvas tools are a preview
22
> and on for every plan; see "Cost".
23
24
If the canvas tools are missing or refused, read the message and tell the
25
person; do not work around it. Canvas tools are on for every plan, so a
26
refusal means the server has them off, the person's access in their workspace
27
was turned off, or support has to set up their workspace (support@flowstudio.app).
28
29
---
30
31
## Which Skill to Use When
32
33
| The person wants to | Load this skill |
34
|---|---|
35
| Inspect, audit or diagnose an app: formulas, data sources, quality, versions | **`flowstudio-power-apps-canvas-read`** |
36
| Build or change an app: screens, controls, formulas, data sources | **`flowstudio-power-apps-canvas-edit`** |
37
| Push and publish changes, or recover from a refused push | **`flowstudio-power-apps-canvas-ship`** |
38
| Understand sessions, versions, timeouts and costs | this skill (foundation) |
39
| Fix or build a flow the app calls | **`flowstudio-power-automate-debug`** or **`flowstudio-power-automate-build`** |
40
41
---
42
43
## Source of Truth
44
45
> **Always call `tool_search` with `"skill:canvas-app"` first** (and
46
> `"skill:canvas-layout"` for layout) to confirm tool names and parameter
47
> schemas. They change between server versions.
48
> This skill covers behavior the schemas cannot tell you. Most of it was
49
> checked against the production server on 2026-11-20 by building and pushing
50
> test apps; lines marked "on a real app" come from customer apps built
51
> between August and November 2026. If what a response shows actually happened
52
> disagrees with this file, the response wins. The server's general guidance
53
> text does not override the warnings here.
54
55
The server's canvas guidance changes with each release. Load it at the
56
start of every canvas task:
57
58
- `tool_search` with `"skill:canvas-app"`: the tool definitions and the
59
server's workflow notes.
60
- `tool_search` with `"skill:canvas-layout"`: layout tools, plus pointers to
61
Microsoft's layout guides (`"page:ms-canvas-layout"` and
62
`"page:ms-canvas-grid"`).
63
- `list_skills` lists every bundle; `dataverse`, `sharepoint`, `excel` and
64
`sql` also cover canvas data sources.
65
66
---
67
68
## The Tools
69
70
| Tool | Changes the app? | Use it for |
71
|---|---|---|
72
| `list_canvas_apps` | no | find app ids in an environment |
73
| `create_canvas_app` | creates one | a new app from a starting layout, or a copy |
74
| `get_canvas_app` | no | open an app: screens, data sources, App Checker findings, session |
75
| `list_canvas_controls` | no | the control tree (names and types), or the catalog of types you can add |
76
| `describe_canvas_control` | no | one control's formulas, or one type's properties and variants |
77
| `get_canvas_app_sources` | no | data sources with real column names and types |
78
| `check_canvas_formula` | no | compile Power Fx against the app before writing it |
79
| `score_canvas_app` | no | a 0-10 quality score with ranked fixes |
80
| `get_canvas_app_files` | no | raw package files |
81
| `list_canvas_app_versions` | no | version history; `isLive` marks what users run |
82
| `diff_canvas_app` | no | compare two states per control and property |
83
| `update_canvas_app` | stages, and pushes with `push: true` | every control, screen, formula and data source edit |
84
| `update_canvas_app_files` | stages | images under `Assets/`, `References/*` |
85
| `discard_canvas_app_session` | drops staged edits | start clean |
86
| `publish_canvas_app` | yes, goes live | make the draft what users run |
87
| `add_to_solution` | yes | put the app in a Dataverse solution |
88
| `get_task` | no | poll a long call that returned a `taskId` |
89
90
There is no tool to delete an app or a version. Test apps and copies are
91
deleted by the person in the Power Apps maker portal, so give them names that
92
are easy to find.
93
94
---
95
96
## Parameters
97
98
- Canvas tools take `environmentName` (`environment` is accepted too). Pass
99
the environment id, for example `Default-<tenant id>` or a bare GUID. If you
100
pass the full display name of one environment, or `Default`, the server
101
swaps in the id and adds a hint. A name that matches no environment, or more
102
than one, is refused with a pointer to `list_live_environments`.
103
- `app` is the app GUID from `list_canvas_apps`.
104
105
---
106
107
## The Session
108
109
Every canvas response carries a `session` block. Read it on every call; do not
110
rely on memory, since you lose it across a context reset.
111
112
| Field | Meaning |
113
|---|---|
114
| `open` | `true` once something is staged. A read starts a session even though `open` stays `false` until then |
115
| `basedOnVersion` | the version your edits apply to |
116
| `startedAt` | when the session opened |
117
| `pendingEdits` | staged file writes waiting for a push. Not the number of edits: one edit usually writes two files |
118
| `baseMovedBy` | shown once something is staged: how many versions were saved after your session started. Above 0 means a push will be refused, unless the newer versions change nothing in the app; then the push goes on top and the reply says `savedOverNoChange` |
119
| `rebasedFrom` | present when a session with nothing staged was moved to the newest version for you |
120
| `expiresAt` | 7 days after `startedAt`. After that the next call deletes the session and its staged edits, so push or record your edits before then |
121
| `import` | an import still running on the platform (see "Long Calls and Timeouts") |
122
| `warning` | plain-language explanation when something needs action |
123
124
How sessions behave:
125
126
- Any canvas read opens one. There is one session per app for each FlowStudio
127
workspace. Anyone working in the same workspace shares it, so staged edits
128
you did not make can be someone else's.
129
- A read with no `definition`, or with `definition: "latest"`, shows your
130
session's base plus your staged edits. That is the head unless the app was
131
saved after you staged something (`baseMovedBy` above 0); then read the
132
head by its `version` id, or diff `base` to it. Only `version`,
133
`"published"` or `"draft"` show a saved state on its own.
134
`get_canvas_app_files` labels each file `servedFrom: "session"` or
135
`"snapshot"`.
136
- A push saves the draft and closes the session. The next call opens a new
137
session on the new version.
138
- A failed push keeps the staged edits. Fix the cause and push again with no
139
new edits.
140
- `discard_canvas_app_session` drops staged edits and reports how many file
141
writes it dropped. The app itself is not touched.
142
- A session with nothing staged is moved to the newest version on the next
143
read when the app has been saved since (`rebasedFrom` says so), so an empty
144
session needs no action. At the start of a task, if `pendingEdits` is above
145
0 and you did not stage them (a session left from an earlier day, or someone
146
else in the workspace), diff `base` to `session` and ask the person before
147
discarding. If a push from a session left from an earlier day is refused
148
with base-moved, follow the base-moved steps in `flowstudio-power-apps-canvas-ship`.
149
- A session is not a lock. Power Apps Studio, or the same person on another
150
FlowStudio server, can save a new version under you. `baseMovedBy` shows it
151
and the push refuses (see `flowstudio-power-apps-canvas-ship`).
152
153
---
154
155
## Draft Is Not Live
156
157
"Head" in these skills means the newest saved version of an app, whatever its
158
state. `list_canvas_app_versions` rows carry `lifeCycleId` and `isLive`:
159
160
| `lifeCycleId` | Meaning |
161
|---|---|
162
| `Published` with `isLive: true` | what users run |
163
| `Published` with `isLive: false` | an older publish |
164
| `Draft` | pushed, not published |
165
| `Autosaved` | Studio, or an authoring or validation tool, saved it in passing, without anyone pressing Save |
166
167
A push to an existing app creates a `Draft` version, and its users see nothing
168
until `publish_canvas_app`. Publish takes no version: it publishes the app's
169
newest version, whoever saved it, so check that the head is yours first (see
170
`flowstudio-power-apps-canvas-ship`). Two things are live straight away: a new app from
171
`create_canvas_app`, and a copy made with `saveAsNewApp`. The head is not
172
always the best version: judge damage by `isLive`. FlowStudio appends
173
` #flowstudio-mcp` to every commit message, so its versions are easy to tell
174
apart from Studio saves.
175
176
---
177
178
## Long Calls and Timeouts
179
180
- A reply with `taskId` and `status: "working"` means the work is still
181
running. Do not call the tool again. Wait `pollIntervalMs`, then call
182
`get_task` until `status` is `completed` or `failed`. The completed result
183
has the same shape the tool would have returned.
184
- A push can come back `importing`, or `session.import.state` can read
185
`running`. Resume with `update_canvas_app`, `push: true` and no edits. If it
186
is still `running` after about five minutes, or the resume times out, keep
187
your edit list and `discard_canvas_app_session` (this drops staged edits).
188
Then check `list_canvas_app_versions`. A new version is not proof: Studio
189
or another writer can save one too. Read it by `version` id
190
(`describe_canvas_control` on the controls you changed) and send again only
191
the edits that are not in it. If you cannot tell, stop and tell the person. On 2026-11-20 a timed-out copy
192
left an import running on the source app for over five minutes; discarding
193
cleared it and no extra version had been saved.
194
- **A timeout or platform error does not mean nothing happened.**
195
`create_canvas_app` has timed out, and once returned `404 OperationNotFound`,
196
yet created the app. If a create from a starting layout fails, send it again
197
with exactly the same name. If the first one worked, the retry is refused
198
either by Power Apps (`ApplicationDisplayNameIsInUse`, quoting the existing
199
app id) or, once the app list has caught up, by FlowStudio ("An app named
200
... already exists in this environment. Pick another name."). Both mean the
201
first create worked: do not pick another name; find the app with
202
`list_canvas_apps`. That does not work for a `fromApp` copy: the retry timed
203
out too and left an import running on the source app. For a copy, wait a
204
few minutes and look for it with `list_canvas_apps`, or ask the person to
205
check the maker portal.
206
- `list_canvas_apps` can lag several minutes behind a create. A missing app
207
may still open with `get_canvas_app` by id.
208
- Run creates and pushes one at a time. The failures above happened when three
209
creates ran at once.
210
211
---
212
213
## Cost
214
215
The canvas tools are free while they are in preview, except `add_to_solution`,
216
which is charged like a flow tool. Every canvas response carries a `preview`
217
note saying when the preview ends. After that, canvas calls count toward the
218
person's credits. When calls run out the reply starts `Plan limit reached`, `Monthly call
219
allowance reached` (a shared team plan) or `Your free evaluation ended`; tell
220
the person and do not retry into it. `score_canvas_app`,
221
`list_skills`, `tool_search` and `get_task` are always free.
222
223
---
224
225
## Errors Versus Refusals
226
227
- A **refusal** is a normal response with a `refused` object (`pushed: false`).
228
It explains what happened and what to do next. Read it; never blindly retry.
229
- An **error** is a failed call. Some guard checks come back as errors, not
230
refusals: `expectedAppVersion` is one (see `flowstudio-power-apps-canvas-ship`).
231
- `notMatched` / `wouldNotMatch` on `update_canvas_app` lists edits that were
232
skipped, each with a `reason`. The others in the same batch still apply.
233
234
---
235
236
## Related Skills
237
238
- `flowstudio-power-apps-canvas-read`: inspect, audit and diagnose canvas apps
239
- `flowstudio-power-apps-canvas-edit`: build and change canvas apps
240
- `flowstudio-power-apps-canvas-ship`: push, publish and recover from refused pushes
241
- `flowstudio-power-automate-mcp`: connection setup, the MCP helper and tool discovery
242

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…