get_shared_page_elements Architecture

Retrieve the catalog of shared UI components discovered across all scanned pages

Overview

Part of the Architecture Toolkit. After pages are compared, DoneDone.Run automatically analyzes each page's HTML and screenshots to identify reusable UI components — headers, footers, navigation menus, sidebars, widgets, call-to-action banners, and more. This tool returns the full catalog of shared elements for a clone job, each with its type, description, page count, code pattern, and cropped screenshot.

How It Works

  1. During page comparison, an AI analyzes each page's rendered HTML and full-page screenshot to detect shared UI components.
  2. New elements are cataloged with bounding-box coordinates; existing elements are matched and their page associations grow.
  3. After all pages finish comparing, a deduplication sweep merges any elements that were cataloged separately but represent the same component.
  4. This tool returns the final deduplicated catalog with every element's type, description, code pattern, screenshot URLs, and the list of pages each element appears on.

Input Parameters

ParameterTypeRequiredDescription
job_id string required The clone job ID returned by discover_all_pages
type_filter string optional Filter by element type (e.g. header, footer, navigation, sidebar, hero, call_to_action, card, widget, search_bar, banner)

What You Get Back

Example Use Case

Before building a clone site, an agent calls get_shared_page_elements to learn that the site has a sticky top navigation on 16 of 19 pages, a footer with an email signup on 9 pages, and a sidebar with search, archives, and recent posts widgets on 7 blog pages. The agent uses this blueprint to build shared layout components first, then drops page-specific content into them.

Tips

Run after a full comparison completes — elements are discovered during page comparison and deduplicated at the end.
Use type_filter to focus on specific component types (e.g. 'navigation' to see just nav elements).
Elements with high page counts are your site-wide layout components — build these as shared templates.
The code_pattern field contains a generalized version of the HTML with placeholders, useful for templating.
Cropped screenshots give agents a visual reference for what each component looks like.

Related Tools