Tool ID:
contextdev_get_web_scrape_imagesRun this action
Use the TypeScript SDK for one call. Usectx.tools.execute(...) inside a Play for durable calls, scheduled calls, or CSV processing.
import { Deepline } from 'deepline';
const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
'contextdev_get_web_scrape_images',
{
"url": "https://example.com/resource"
},
);
console.log(result.toolResponse.raw);
CLI
deepline run contextdev_get_web_scrape_images --input '{
"url": "https://example.com/resource"
}'
Example response
The SDK returns this shape atresult.toolResponse.raw. The example values illustrate the response.
{
"data": {
"success": true,
"images": [
{
"src": "example",
"element": "img",
"type": "url",
"alt": "example"
}
],
"url": "https://example.com",
"cache_metadata": {
"status": "hit",
"age_ms": 123
},
"request_id": "123e4567-e89b-42d3-a456-426614174000"
}
}
deepline describe contextdev_get_web_scrape_images --json for the latest machine-readable contract.
Input reference
Extract image assets from a web page, including standard URLs, inline SVGs, data URIs, responsive image sources, metadata, CSS backgrounds, video posters, and embeds.| Name | Type | Required | Default | Details |
|---|---|---|---|---|
payload.url | string | Yes | — | Page URL to inspect. Must include http:// or https://. Format: uri. Minimum length: 1. |
payload.maxAgeMs | integer | No | 259200000 | Maximum cache age in milliseconds. Defaults to 3 days (259200000 ms). Maximum: 1 year (31536000000 ms). 0 fetches fresh. Minimum: 0. Maximum: 31536000000. |
payload.enrichment | object | No | — | Optional per-image processing, sent as deep-object query params such as enrichment[resolution]=true. |
payload.dedupe | boolean | No | false | Remove visual duplicates, keeping the highest-resolution copy. Undownloadable images remain. |
payload.waitForMs | integer | No | — | Optional browser wait time in milliseconds after initial page load before collecting images. Min: 0. Max: 30000 (30 seconds). When combined with timeoutOpts, timeoutOpts.milliseconds must be at least waitForMs + 10000 ms. A shorter deadline is rejected with 400 TIMEOUT_TOO_SHORT_FOR_WAIT. Minimum: 0. Maximum: 30000. |
payload.actions | array | No | — | Optional browser actions executed in array order after the page loads and before content is captured. Send a JSON array in the query parameter. Maximum: 5 actions. Maximum items: 5. |
payload.headers | record | No | — | HTTP headers for the target origin. Non-empty headers bypass caching. |
payload.country | "ad" | "ae" | "af" | "ag" | "ai" | "al" | "am" | "ao" | "ar" | "at" | "au" | "aw" | "az" | "ba" | "bb" | "bd" | "be" | "bf" | "bg" | "bh" | "bi" | "bj" | "bm" | "bn" | "bo" | "bq" | "br" | "bs" | "bw" | "by" | "bz" | "ca" | "cd" | "cf" | "cg" | "ch" | "ci" | "cl" | "cm" | "cn" | "co" | "cr" | "cv" | "cw" | "cy" | "cz" | "de" | "dj" | "dk" | "dm" | "do" | "dz" | "ec" | "ee" | "eg" | "es" | "et" | "fi" | "fj" | "fr" | "ga" | "gb" | "gd" | "ge" | "gf" | "gg" | "gh" | "gm" | "gn" | "gp" | "gq" | "gr" | "gt" | "gu" | "gw" | "gy" | "hk" | "hn" | "hr" | "ht" | "hu" | "id" | "ie" | "il" | "im" | "in" | "iq" | "ir" | "is" | "it" | "je" | "jm" | "jo" | "jp" | "ke" | "kg" | "kh" | "kn" | "kr" | "kw" | "ky" | "kz" | "la" | "lb" | "lc" | "lk" | "lr" | "ls" | "lt" | "lu" | "lv" | "ly" | "ma" | "mc" | "md" | "me" | "mf" | "mg" | "mk" | "ml" | "mm" | "mn" | "mo" | "mq" | "mr" | "mt" | "mu" | "mv" | "mw" | "mx" | "my" | "mz" | "na" | "nc" | "ne" | "ng" | "ni" | "nl" | "no" | "np" | "nz" | "om" | "pa" | "pe" | "pf" | "pg" | "ph" | "pk" | "pl" | "pr" | "ps" | "pt" | "py" | "qa" | "re" | "ro" | "rs" | "ru" | "rw" | "sa" | "sc" | "sd" | "se" | "sg" | "si" | "sk" | "sl" | "sm" | "sn" | "so" | "sr" | "ss" | "st" | "sv" | "sx" | "sy" | "sz" | "tc" | "td" | "tg" | "th" | "tj" | "tl" | "tm" | "tn" | "tr" | "tt" | "tw" | "tz" | "ua" | "ug" | "us" | "uy" | "uz" | "vc" | "ve" | "vg" | "vi" | "vn" | "ye" | "yt" | "za" | "zm" | "zw" | No | — | Fetch from this country (ISO 3166-1 alpha-2). Allowed: ad, ae, af, ag, ai, al, am, ao, ar, at, au, aw, az, ba, bb, bd, be, bf, bg, bh, bi, bj, bm, bn, bo, bq, br, bs, bw, by, bz, ca, cd, cf, cg, ch, ci, cl, cm, cn, co, cr, cv, cw, cy, cz, de, dj, dk, dm, do, dz, ec, ee, eg, es, et, fi, fj, fr, ga, gb, gd, ge, gf, gg, gh, gm, gn, gp, gq, gr, gt, gu, See the live schema for the complete constraint. |
payload.timeoutOpts | object | No | — | Request deadline and what to return when it passes. |
payload.zdr | "enabled" | "disabled" | No | "disabled" | enabled turns on zero data retention. Returns 403 ZDR_NOT_ENABLED unless your organization has ZDR. Allowed: enabled, disabled. |
payload.tags | array | No | — | Comma-separated labels for filtering usage, e.g. production,team-alpha. Maximum items: 20. |
payload.timeoutMS | integer | No | — | Deprecated: use timeoutOpts.milliseconds. Request deadline in milliseconds. sent as timeoutOpts with the “fail” behavior. Minimum: 1. Maximum: 300000. |
Output reference
| Name | Type | Required | Default | Details |
|---|---|---|---|---|
result.data | object | Yes | — | — |
result.data.partial | boolean | No | — | — |
result.data.finalDOMState | "loaded" | "still-loading" | No | — | Allowed: loaded, still-loading. |
result.data.success | true | Yes | — | Allowed: true. |
result.data.images | array | Yes | — | — |
result.data.images[].src | string | Yes | — | — |
result.data.images[].element | "img" | "svg" | "link" | "source" | "video" | "css" | "object" | "meta" | "background" | Yes | — | Allowed: img, svg, link, source, video, css, object, meta, background. |
result.data.images[].type | "url" | "html" | "base64" | Yes | — | Allowed: url, html, base64. |
result.data.images[].alt | string | null | Yes | — | — |
result.data.images[].enrichment | object | No | — | — |
result.data.images[].enrichment.width | integer | No | — | — |
result.data.images[].enrichment.height | integer | No | — | — |
result.data.images[].enrichment.mimetype | string | No | — | — |
result.data.images[].enrichment.url | string | No | — | Format: uri. |
result.data.images[].enrichment.type | "photography" | "illustration" | "logo" | "wordmark" | "icon" | "pattern" | "graphic" | "other" | No | — | Allowed: photography, illustration, logo, wordmark, icon, pattern, graphic, other. |
result.data.url | string | Yes | — | — |
result.data.cache_metadata | object | Yes | — | — |
result.data.cache_metadata.status | "hit" | "miss" | "zdr" | Yes | — | Allowed: hit, miss, zdr. |
result.data.cache_metadata.age_ms | integer | Yes | — | Minimum: 0. |
result.data.actionsApplied | array | No | — | — |
result.data.actionsApplied[].instruction | string | Yes | — | — |
result.data.actionsApplied[].status | "applied" | "failed" | "skipped" | Yes | — | Allowed: applied, failed, skipped. |
result.data.actionsApplied[].method | string | No | — | — |
result.data.actionsApplied[].targetDescription | string | No | — | — |
result.data.actionsApplied[].completionEvidence | string | No | — | — |
result.data.actionsApplied[].error | string | No | — | — |
result.data.actionsApplied[].durationMs | number | No | — | — |
result.data.key_metadata | object | No | — | — |
result.data.request_id | string | Yes | — | Format: uuid. |
result.meta | object | No | — | — |
Deepline cost
- Pricing model:
provider_usage(provider usage). - Estimated Deepline credits:
0.01per pricing unit.