Skip to main content
Glama

Extract website assets

extract_assets

Download a website's original images, videos, fonts, SVGs, and icons into a local folder, along with a manifest linking each asset to its page location, so a replica can reuse exact media.

Instructions

Download the real images, background images, inline SVG icons/logos, videos, favicons, and web fonts a website uses into a local folder, with a manifest.json mapping each file to where it appears. Lets a replica reuse the exact original assets instead of re-drawing them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesAbsolute http:// or https:// URL to extract assets from.
typesNoAsset types to include. Empty means all.
maxAssetsNoMaximum unique assets to download.
outputDirYesAbsolute directory to write an 'assets/' folder and manifest.json into.
timeoutMsNoNavigation timeout in milliseconds.
userAgentNoOptional browser user-agent override.
waitUntilNoPage lifecycle event to await before extraction.domcontentloaded
autoScrollNoScroll through the page before extraction to trigger lazy-rendered content.
maxScrollsNoMaximum viewport-sized scroll steps when autoScroll is enabled.
maxSvgBytesNoSkip inline SVGs larger than this.
viewportWidthNoBrowser viewport width in CSS pixels.
viewportHeightNoBrowser viewport height in CSS pixels.
maxBytesPerAssetNoSkip assets larger than this.
allowPrivateNetworkNoAllow localhost and private-network URLs. Enable only for trusted sites.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations indicate open-world behavior (false readOnly, true openWorld), and the description adds that it downloads files into a local folder and generates a manifest.json mapping origins. It goes beyond annotations by clarifying the side effect of writing to disk, though it doesn't mention overwrite behavior or any authorization needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no fluff. The first sentence front-loads the action and deliverables, the second places it in the replica workflow. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex 14-parameter tool, the description plus rich schema and annotations give a complete enough picture for selection and invocation. It covers what it does, what it outputs, and why. It doesn't discuss edge cases, but that's appropriately left to the schema and output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the description doesn't need to explain individual parameters. The tool description does align with the types enum and mentions the manifest output, but overall it adds little beyond the schema's thorough parameter documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses the specific verb 'Download' and clearly enumerates the resource types (real images, background images, inline SVG icons/logos, videos, favicons, web fonts) along with the output (local folder + manifest.json). This strongly differentiates it from sibling tools like extract_animations or capture_screenshot.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description states the use case: 'Lets a replica reuse the exact original assets instead of re-drawing them.' This provides clear context for when to use it, though it doesn't explicitly name when not to use it or name alternative tools for layout/structure extraction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/blackridder22/PicassoWeb'

If you have feedback or need assistance with the MCP directory API, please join our Discord server