acquia-source-canvas-pages

Category: Tools & Productivity | Uploader: acquiaacquia | Downloads: 0 | Version: v1.0(Latest)

Publishes and updates remote Canvas pages on Acquia Source via Source MCP — images, props, layout; page JSON does not CLI-sync to Source. --- # Acquia Source — Canvas pages via Source MCP ## When this applies Use this skill when **all** of the following hold: 1. The target is an **Acquia Source** Drupal/Canvas site (see hostname signal and **`CANVAS_SITE_URL`** in [`AGENTS.md`](../../../AGENTS.md)). 2. The work is **Canvas pages** on the **remote** site (create page, place components, update layout/props, publish)—not local-only Workbench preview. ## Do not use Canvas CLI for remote pages **`canvas push` / `canvas pull` do not support syncing page JSON to/from the remote Acquia Source environment today.** Do not instruct users to rely on CLI page sync for that tenant. - **Components:** Continue to use the Canvas CLI (`npx canvas push`) and [`canvas-component-push`](../canvas-component-push/SKILL.md) for pushing **JavaScript components** when the user asks to push component source. - **Pages:** Use **Source MCP tools** on the configured server. ## Images and media (pages do not CLI-sync) Because **`canvas push` / `canvas pull` do not sync page JSON** to Acquia Source, **nothing in repo `pages/*.json` automatically provisions files or image props on the remote site.** Local page specs may use HTTPS placeholders, `placehold.co`, or example paths so **Workbench** renders; those values are not reliable as the remote source of truth. Treat image handling as a **remote-only** concern: ### What to do instead 1. **Discover the prop shape** — Each component’s `component.yml` defines how image fields are modeled (`image`, `heroImage`, nested objects, etc.). Keep that shape when updating instances on the server. 2. **Obtain Drupal-hosted media** — Prefer assets that live on the Source site: - **Upload** — Use Source MCP (`create_media` + signed upload URL pattern, etc.—read the live tool schema). See **Phase A5** in [`acquia-source-site-build`](../acquia-source-site-build/SKILL

Changelog: Source: GitHub https://github.com/acquia/nebula

Directory Structure

Current level: tree/main/.agents/skills/acquia-source-canvas-pages/

  • 📄 SKILL.md 6.0 KB

SKILL.md

Login to download/like/favorite ❤ 10 | ★ 0
Comments 0

Please login before commenting.

Loading comments...