Home / Market / flowstudio power apps canvas edit

flowstudio power apps canvas edit

Build and change Power Apps canvas apps through FlowStudio MCP: create apps, add and restyle screens and controls, write Power Fx, build galleries, and connect Dataverse, SharePoint, connectors and flows, all as named edits the server checks. Load this skill when asked to: create an app, add or change a screen or control, write or fix a Power Fx formula, add a gallery or table, connect a data source or flow, fix a layout, or improve an app's quality score. Requires a FlowStudio MCP subscription;

skill★ 417940 dlgithubMITInstall in CosmosUpstream Source

Documentation & Preview

--- name: flowstudio-power-apps-canvas-edit description: >- Build and change Power Apps canvas apps through FlowStudio MCP: create apps, add and restyle screens and controls, write Power Fx, build galleries, and connect Dataverse, SharePoint, connectors and flows, all as named edits the server checks. Load this skill when asked to: create an app, add or change a screen or control, write or fix a Power Fx formula, add a gallery or table, connect a data source or flow, fix a layout, or improve an app's quality score. Requires a FlowStudio MCP subscription; see https://mcp.flowstudio.app

---

Building and Editing Power Apps Canvas Apps with FlowStudio MCP

All edits go through update_canvas_app as named operations: set a property, add a control, rename a screen. The server writes the package files, keeps control ids unique, rewrites the YAML for most edits (not after renameScreen, see "Renaming screens") and checks every formula. Do not edit Controls/*.json or Src/*.pa.yaml by hand.

Prerequisite: The flowstudio-power-apps-canvas-mcp skill (sessions, timeouts) and, for finding things, flowstudio-power-apps-canvas-read. Pushing and publishing are in flowstudio-power-apps-canvas-ship. Subscribe at https://mcp.flowstudio.app

---

Source of Truth

> Always call tool_search with "skill:canvas-app" first to confirm tool > names and parameter schemas. They change between server versions. > This skill covers behavior the schemas cannot tell you. Tool behavior was > checked on the production server on 2026-11-20; lines marked "on a real app" > come from customer apps built between August and November 2026. If what a > response shows actually happened disagrees with this file, the response > wins. The server's general guidance text does not override the warnings > here.

---

Workflow

  1. Open. For an existing app, first ask whether the person has it open in

Power Apps Studio with unsaved work; they save it and close or reload the tab before you start (flowstudio-power-apps-canvas-ship, "Power Apps Studio"). Then get_canvas_app. If session.pendingEdits is above 0 and you did not stage them, diff_canvas_app from base to session shows what they are; ask the person before discard_canvas_app_session drops them.

  1. Get real names. list_canvas_controls for control names,

describe_canvas_control for a control's property names and current formulas, or for a type's properties (name: "modernButton").

  1. Read the data first. get_canvas_app_sources before any formula that

touches a table, so column names are real.

  1. Check formulas before writing them. check_canvas_formula with

formulas, screen and control. flowstudio-power-apps-canvas-read lists what it gets wrong.

  1. Dry run. update_canvas_app with dryRun: true. It reports from and

to per edit and lists edits that match nothing.

  1. Stage. The same call without dryRun. Read notMatched, hints,

defaults and layoutSuggestions in the reply.

  1. Read back. describe_canvas_control on what you changed.
  2. Check the whole app. check_canvas_formula with no formula, then

score_canvas_app. Fix what is worth fixing and repeat.

  1. Ship. Follow flowstudio-power-apps-canvas-ship.

---

How update_canvas_app Applies Edits

from Label1 to lblTitle, every later edit in the same batch must say lblTitle (seen with a screen rename on 2026-11-20).

notMatched with a reason; the rest are staged. Fix and re-send only the failed ones.

("\"Hello\"" in JSON). Colors are RGBA(0, 120, 212, 1).

screen: "App" and control: "App". Named formulas go in Formulas, for example fxTotal = Sum(colExpenses, Amount);.

so read the warnings. A formula with unbalanced brackets or quotes is refused ("structurally invalid and was NOT staged") and listed in notMatched; the rest of the batch still applies, and a push in the same call goes ahead without it.

| op | Does | Seen in testing | |---|---|---| | setProperty (default) | writes formula to property | reply shows from and to | | removeProperty | reverts a property to its default | the way to drop an unwanted formula | | addControl | adds control of type under parent | see "Adding Controls" | | moveControl | changes parent and/or position | after worked; before and position are from the tool description | | renameControl | renames and rewrites every formula that uses it | reply gives formulasRewritten | | deleteControl | removes a control | refused while formulas use it, listing them; force: true overrides | | addScreen | adds an empty screen, last in order | App.StartScreen is untouched | | renameScreen | renames and rewrites Navigate calls | empties that screen's YAML file; see "Renaming screens" | | deleteScreen | removes a screen | refused while anything navigates to it; force: true overrides (fix the Navigate calls first) | | addDataSource | Dataverse table, SharePoint list, connector or flow | see "Data Sources" | | refreshDataSource | re-reads a source's schema | worked for all four kinds | | removeDataSource | removes a table or list | refused while formulas use it; force: true overrides according to the tool description (not tested); does not handle connectors or flows | | addFlow | same as addDataSource with flow | seen in a dry run only |

---

Adding Controls

Type names

type takes the YAML type name. In an app with modern controls (the default for new apps) the server builds the modern version; modern: false gives the classic one. The table uses the names the reply's type field gives:

| type | Modern app builds | Classic app builds | |---|---|---| | Label | ModernText (a text label) | Label | | Text | ModernTextInput (an input box) | Classic/TextInput, per the server's hint | | TextInput | ModernTextInput | Classic/TextInput | | Button | ModernButton | Classic/Button | | Gallery | Gallery | not tested | | Image | Image (not tested) | not tested | | Table | Table (the modern data table) | not tested | | Toggle | not tested | Classic/Toggle | | Dropdown | not tested | Classic/DropDown |

Galleries and images have one generation, used by modern and classic apps alike. Text builds an input box, not a label. Use Label for display text. The reply's type field says what was actually built; check it. list_canvas_controls with in: "catalog" lists every type you can add.

New controls can copy formulas from an existing one

When the app already has a control of the same type, addControl models the new one on it (modelledOn in the reply). Normally it drops the model's own settings. Seen on 2026-11-20, it copied them instead:

disabled them whenever two unrelated text boxes were empty. One of the two replies did not mention it.

In both cases the model control sat on a screen whose YAML a renameScreen had emptied; one of the new buttons went on a different screen and still copied. The server reads the model's own settings from the model's screen YAML to know what to drop, and with nothing there it keeps everything except On... formulas. So expect copying whenever the model is on such a screen, wherever the new control goes, and in older apps with no YAML at all (read from the server code, not tested).

After every addControl, describe_canvas_control the new control and removeProperty anything it should not have, behavior formulas above all (DisplayMode, Visible). Set every property you care about explicitly in properties. copyFrom copies a chosen control on purpose.

Where it goes

screen.

or position. X and Y are ignored.

only decides which paints on top.

inside ScreenContainer1

app. Place controls by X and Y.

Act on what the reply says about the new control:

modern buttons and icons, data tables, classic text inputs, combo boxes and toggles, and galleries, not on labels or classic buttons.

short for its font shows a scrollbar) and input-label (an input with no visible label beside it).

Renaming screens

On 2026-11-20 renameScreen left the renamed screen's Src/<Screen>.pa.yaml holding only the screen name, and later edits did not rebuild it. Studio parses that file when it opens the app (see "Images and Other Package Files" below, and "Package Files" in flowstudio-power-apps-canvas-read), so the app may open with that screen empty, or not open at all; this was not checked. The model controls in "New controls can copy formulas from an existing one" sat on that screen. Until the server is fixed:

For the first screen create_canvas_app makes, keep its name (Screen1). In a phone or tablet app you can instead add a named screen, set App.StartScreen to it, and delete the first (not tested). In a responsive, sidebar or split-screen app that loses the starting containers, so keep Screen1 there.

and ask them to open the app in Studio and check that screen before you publish.

---

Control Generations

There are three generations with different property names. The new modern text input outputs .Text; the older Fluent one outputs .Value. Writing the wrong one compiles as an error. Check the control's type with describe_canvas_control and read control-dialects.md before touching text, color, font weight, alignment or input values.

---

Galleries

Parent.TemplateWidth and Parent.TemplateHeight. TemplateSize sets the row height.

UpdateContext({ itemSelected: true, CurrentItem: ThisItem }).

gallery yet; it is refused with a clear message. It is accepted on a Table, but on 2026-11-20 the score then marked the column controls it built as zero-size; whether they really were was not checked. Look at the table in the published app before relying on it.

reflows on narrow screens. Wrapping existing row controls in a container changes their Parent: on a real app, a Select(Parent) in them then selected the container, not the row, and Studio showed