Inspector ON with Element Info text and AI Rewrite
Inspector plus AI

Appifio Creator · Lesson K04 · Technical

Inspector + AI
used together

Clear job split: hand edit · AI Rewrite · Ask AI to edit (chat prefilled with selector) · full chat modes - always on the Changes draft.

Learning goals: Pick the right Inspector tool for each job; tell Ask AI to edit vs AI Rewrite vs Audit apart; use Layers and DOM Search.

Reading time: about 18 minutes

Prerequisites: C03-C05 (Inspector), B01 (chat), K03 (Canvas).

Previous: K03 - Canvas breakpoints.

Next: K05 - Guest form appendData.

Main UI labels:

Inspector · Layers · DOM Search Ask AI to edit · AI Rewrite · Delete Changes · Send · Compare changes · Save changes Add · Libraries · Audit · Run check

1. Job split: Inspector vs AI

One line of text / image / link / color → Inspector by hand
Rewrite copy, keep the element → AI Rewrite (in panel, no full chat)
Style + content for one element → Ask AI to edit → prefilled tag/selector → add detail → Send
Add a block/section → Add / Libraries (C05)
Whole page / backend → chat mode Coder/UI/Architecture → Diff
Auto layout check → AuditRun check (modal has no AI button)
Can’t click the element → DOM Search (Ctrl+Shift+F) + Layers tab

2. Glossary

TermMeaningWhere in the UI
Ask AI to editPrefills chat with tag/selector/path of the selected elementElement Info panel - full panel: C03; CSS/Computed: C04
AI RewriteAI rewrites text in the field - no full chatButton next to Inspector text fields
DeleteRemove the element from the Changes draftInspector panel
LayersHierarchical DOM tree - select covered elementsTab in Inspector panel
DOM SearchFind selector/class/id in the preview pageCtrl+Shift+F with Inspector on
AuditCheck report - does not call AI in the modalAudit → Run check

3. Step by step

  1. Step 1 - Draft: preview Changes (don’t edit as if you’re on live).
  2. Step 2 - Inspector on: click an element on Canvas; if you can’t select → Layers or DOM Search.
  3. Step 3 - Small jobs (hand): change text, color, URL in Inspector; Undo if wrong.
  4. Step 4 - Wording only: click AI Rewrite on a text field - AI replaces the sentence, keeps the HTML tag.
  5. Step 5 - Complex one-element edit: Ask AI to edit → chat prefilled with selector → add (“add shadow, padding 16px”) → Send → review Compare changes:.
  6. Step 6 - Large jobs: switch chat to UI/Coder - don’t use Ask AI on one element for a whole section.
  7. Step 7 - Delete element: Delete in Inspector - recheck Canvas after.
  8. Step 8 - Publish: when OK on every breakpoint → Save changes.

4. Related features

Ask AI to edit - DOM-aware prefill

Unlike free chat: this inserts tag, CSS selector, and file path into Ask AI…. AI knows the exact element - fewer wrong-section edits. You still add the request and click Send.

AI Rewrite - fast and local

Only rewrites text in the focused field - no large Diff, no nearby layout changes. Use for headlines and short descriptions. Need existing text in the field before clicking.

Audit - not AI

Audit modal only has Run check / Run again. No Ask AI to edit or AI Rewrite inside. Copy Audit results to chat or fix with Inspector.

5. Three Inspector tools compared

ToolScopeWhen to use
Hand edit in InspectorOne field (text, color, link)You know the exact value
AI RewriteText in one fieldNeed different tone, keep HTML structure
Ask AI to editOne element (style + small structure)Describe in words: “round corners, add icon”

6. Can / can’t

You can

  • Pixel-level visual edits without long prompts
  • Point AI at the right selector via Ask AI to edit
  • Select overlayed elements via Layers / DOM Search

Limits

  • Inspector doesn’t edit backend logic - use Coder mode
  • AI Rewrite won’t do complex layout changes
  • Ask AI on one element isn’t enough for multi-file refactors

7. Security with Inspector AI

  • Don’t paste tokens/secrets into a text field then click AI Rewrite - it may go to the model.
  • Review Diff after Ask AI to edit - AI may add inline scripts.
  • Delete admin/settings panels carefully - ensure no hidden routes leak on live.

8. Common issues

SituationFix
AI overwrites text you just edited by handPrompt “keep current text”; or Inspector after AI; Undo
Can’t select an elementLayers · DOM Search · reload · correct Changes tab
Ask AI to edit doesn’t prefill chatOpen AI Chat tab; check Element Info shows the button; reselect element
AI Rewrite returns emptyPut text in the field first; check WebSocket/network
Looking for AI in the Audit modalNone - only Run check; use Inspector/chat separately

9. Tips

  • Efficient order: hand → AI Rewrite → Ask AI to edit → full chat.
  • Always select an element before any Inspector AI button.
  • After Ask AI, check Diff - one element can still pull in a shared CSS file.
  • Use Canvas (K03) with Inspector - edit on Mobile so you don’t ship desktop-only fixes.

10. Self-check & next

  1. Ask AI to edit vs AI Rewrite?
  2. Does Audit have an AI button - what do you click instead?
  3. When Layers vs DOM Search?
  4. Large jobs: Inspector or chat mode?
  5. After Ask AI to edit, what do you check before Save?

Next lesson

K05 - Safe guest forms with appendData

Combine Coder mode with guest policy - indexed appendData and rate-limit messaging.

Appifio Creator · User guide · K04