Skip to content

Commit 63506fe

Browse files
committed
fix(context-dev): remove prefetch and simplified-brand tools
- remove context_dev_prefetch_domain, context_dev_prefetch_by_email, and context_dev_get_brand_simplified tools and their block operation entries; these aren't meant for general use - regenerate docs to drop their sections from context_dev.mdx
1 parent 5bf21e5 commit 63506fe

9 files changed

Lines changed: 6 additions & 393 deletions

File tree

apps/docs/content/docs/en/integrations/context_dev.mdx

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -584,31 +584,6 @@ Retrieve brand data for a public company by its stock ticker symbol.
584584
|`links` | json | Key brand links \(careers, privacy, terms, blog, pricing, contact\) |
585585
|`primary_language` | string | Primary language of the brand site |
586586

587-
### `context_dev_get_brand_simplified`
588-
589-
Retrieve essential brand data for a domain: title, colors, logos, and backdrops.
590-
591-
#### Input
592-
593-
| Parameter | Type | Required | Description |
594-
| --------- | ---- | -------- | ----------- |
595-
| `domain` | string | Yes | The domain to retrieve simplified brand data for \(e.g., "airbnb.com"\) |
596-
| `maxAgeMs` | number | No | Cache max age in milliseconds \(86400000-31536000000, default: 7776000000\) |
597-
| `timeoutMS` | number | No | Request timeout in milliseconds \(1000-300000\) |
598-
| `apiKey` | string | Yes | Context.dev API key |
599-
600-
#### Output
601-
602-
| Parameter | Type | Description |
603-
| --------- | ---- | ----------- |
604-
| `status` | string | Retrieval status |
605-
| `brand` | object | Simplified brand data \(domain, title, colors, logos, backdrops\) |
606-
|`domain` | string | Brand domain |
607-
|`title` | string | Brand title |
608-
|`colors` | json | Brand colors \(hex and name\) |
609-
|`logos` | json | Brand logos with mode, colors, resolution, and type |
610-
|`backdrops` | json | Brand backdrop images |
611-
612587
### `context_dev_identify_transaction`
613588

614589
Identify the brand behind a raw bank/card transaction descriptor and return its brand data.
@@ -651,44 +626,4 @@ Identify the brand behind a raw bank/card transaction descriptor and return its
651626
|`links` | json | Key brand links \(careers, privacy, terms, blog, pricing, contact\) |
652627
|`primary_language` | string | Primary language of the brand site |
653628

654-
### `context_dev_prefetch_domain`
655-
656-
Queue a domain for brand-data prefetching to reduce latency on later requests (subscribers; 0 credits).
657-
658-
#### Input
659-
660-
| Parameter | Type | Required | Description |
661-
| --------- | ---- | -------- | ----------- |
662-
| `domain` | string | Yes | The domain to prefetch brand data for \(e.g., "example.com"\) |
663-
| `timeoutMS` | number | No | Request timeout in milliseconds \(1000-300000\) |
664-
| `apiKey` | string | Yes | Context.dev API key |
665-
666-
#### Output
667-
668-
| Parameter | Type | Description |
669-
| --------- | ---- | ----------- |
670-
| `status` | string | Prefetch status |
671-
| `message` | string | Human-readable prefetch result message |
672-
| `domain` | string | The domain queued for prefetching |
673-
674-
### `context_dev_prefetch_by_email`
675-
676-
Queue an email's domain for brand-data prefetching to reduce later latency (subscribers; 0 credits). Free/disposable emails are rejected.
677-
678-
#### Input
679-
680-
| Parameter | Type | Required | Description |
681-
| --------- | ---- | -------- | ----------- |
682-
| `email` | string | Yes | Work email address whose domain should be prefetched \(free providers rejected\) |
683-
| `timeoutMS` | number | No | Request timeout in milliseconds \(1000-300000\) |
684-
| `apiKey` | string | Yes | Context.dev API key |
685-
686-
#### Output
687-
688-
| Parameter | Type | Description |
689-
| --------- | ---- | ----------- |
690-
| `status` | string | Prefetch status |
691-
| `message` | string | Human-readable prefetch result message |
692-
| `domain` | string | The domain queued for prefetching |
693-
694629

apps/sim/blocks/blocks/context_dev.ts

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,7 @@ const URL_OPS = [
1414
'extract_product',
1515
]
1616
/** Operations whose primary input is a bare domain. */
17-
const DOMAIN_OPS = [
18-
'map',
19-
'get_brand',
20-
'get_brand_simplified',
21-
'extract_products',
22-
'scrape_fonts',
23-
'scrape_styleguide',
24-
'prefetch_domain',
25-
]
17+
const DOMAIN_OPS = ['map', 'get_brand', 'extract_products', 'scrape_fonts', 'scrape_styleguide']
2618
/** Classification operations keyed on a domain-or-name input. */
2719
const CLASSIFY_OPS = ['classify_naics', 'classify_sic']
2820
/** Brand operations that accept language/speed tuning. */
@@ -49,7 +41,6 @@ const MAX_AGE_OPS = [
4941
'get_brand_by_name',
5042
'get_brand_by_email',
5143
'get_brand_by_ticker',
52-
'get_brand_simplified',
5344
]
5445
/** Operations that accept a post-load browser wait. */
5546
const WAIT_FOR_OPS = ['scrape_markdown', 'scrape_html', 'scrape_images', 'screenshot', 'crawl']
@@ -118,10 +109,7 @@ export const ContextDevBlock: BlockConfig<ContextDevScrapeMarkdownResponse> = {
118109
{ label: 'Get Brand by Name', id: 'get_brand_by_name' },
119110
{ label: 'Get Brand by Email', id: 'get_brand_by_email' },
120111
{ label: 'Get Brand by Ticker', id: 'get_brand_by_ticker' },
121-
{ label: 'Get Brand (Simplified)', id: 'get_brand_simplified' },
122112
{ label: 'Identify Transaction', id: 'identify_transaction' },
123-
{ label: 'Prefetch Domain', id: 'prefetch_domain' },
124-
{ label: 'Prefetch by Email', id: 'prefetch_by_email' },
125113
],
126114
value: () => 'scrape_markdown',
127115
},
@@ -170,8 +158,8 @@ export const ContextDevBlock: BlockConfig<ContextDevScrapeMarkdownResponse> = {
170158
title: 'Work Email',
171159
type: 'short-input',
172160
placeholder: 'name@company.com',
173-
condition: { field: 'operation', value: ['get_brand_by_email', 'prefetch_by_email'] },
174-
required: { field: 'operation', value: ['get_brand_by_email', 'prefetch_by_email'] },
161+
condition: { field: 'operation', value: 'get_brand_by_email' },
162+
required: { field: 'operation', value: 'get_brand_by_email' },
175163
},
176164
{
177165
id: 'ticker',
@@ -563,10 +551,7 @@ Do not include any explanations, markdown formatting, or other text outside the
563551
'context_dev_get_brand_by_name',
564552
'context_dev_get_brand_by_email',
565553
'context_dev_get_brand_by_ticker',
566-
'context_dev_get_brand_simplified',
567554
'context_dev_identify_transaction',
568-
'context_dev_prefetch_domain',
569-
'context_dev_prefetch_by_email',
570555
],
571556
config: {
572557
tool: (params) =>
@@ -745,11 +730,6 @@ Do not include any explanations, markdown formatting, or other text outside the
745730
setNumber('maxAgeMs')
746731
setNumber('timeoutMS')
747732
break
748-
case 'get_brand_simplified':
749-
setString('domain')
750-
setNumber('maxAgeMs')
751-
setNumber('timeoutMS')
752-
break
753733
case 'identify_transaction':
754734
setString('transactionInfo')
755735
setString('countryGl')
@@ -761,14 +741,6 @@ Do not include any explanations, markdown formatting, or other text outside the
761741
setBool('maxSpeed')
762742
setNumber('timeoutMS')
763743
break
764-
case 'prefetch_domain':
765-
setString('domain')
766-
setNumber('timeoutMS')
767-
break
768-
case 'prefetch_by_email':
769-
setString('email')
770-
setNumber('timeoutMS')
771-
break
772744
}
773745

774746
return result
@@ -783,7 +755,7 @@ Do not include any explanations, markdown formatting, or other text outside the
783755
input: { type: 'string', description: 'Domain or company name for classification' },
784756
query: { type: 'string', description: 'Web search query' },
785757
name: { type: 'string', description: 'Company name for brand lookup' },
786-
email: { type: 'string', description: 'Work email for brand lookup or prefetch' },
758+
email: { type: 'string', description: 'Work email for brand lookup' },
787759
ticker: { type: 'string', description: 'Stock ticker for brand lookup' },
788760
transactionInfo: { type: 'string', description: 'Transaction descriptor to identify' },
789761
schema: { type: 'json', description: 'JSON schema for structured extraction' },
@@ -850,7 +822,6 @@ Do not include any explanations, markdown formatting, or other text outside the
850822
meta: { type: 'json', description: 'Sitemap discovery stats' },
851823
query: { type: 'string', description: 'The query that was searched' },
852824
status: { type: 'string', description: 'Operation status' },
853-
message: { type: 'string', description: 'Prefetch result message' },
854825
urlsAnalyzed: { type: 'json', description: 'URLs analyzed during extraction' },
855826
data: { type: 'json', description: 'Structured data extracted from the site' },
856827
isProductPage: { type: 'boolean', description: 'Whether the URL is a product page' },

apps/sim/lib/integrations/integrations.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"updatedAt": "2026-07-10",
2+
"updatedAt": "2026-07-11",
33
"integrations": [
44
{
55
"type": "onepassword",
@@ -3870,24 +3870,12 @@
38703870
"name": "Get Brand by Ticker",
38713871
"description": "Retrieve brand data for a public company by its stock ticker symbol."
38723872
},
3873-
{
3874-
"name": "Get Brand (Simplified)",
3875-
"description": "Retrieve essential brand data for a domain: title, colors, logos, and backdrops."
3876-
},
38773873
{
38783874
"name": "Identify Transaction",
38793875
"description": "Identify the brand behind a raw bank/card transaction descriptor and return its brand data."
3880-
},
3881-
{
3882-
"name": "Prefetch Domain",
3883-
"description": "Queue a domain for brand-data prefetching to reduce latency on later requests (subscribers; 0 credits)."
3884-
},
3885-
{
3886-
"name": "Prefetch by Email",
3887-
"description": "Queue an email's domain for brand-data prefetching to reduce later latency (subscribers; 0 credits). Free/disposable emails are rejected."
38883876
}
38893877
],
3890-
"operationCount": 22,
3878+
"operationCount": 19,
38913879
"triggers": [],
38923880
"triggerCount": 0,
38933881
"authType": "api-key",

apps/sim/tools/context_dev/get_brand_simplified.ts

Lines changed: 0 additions & 81 deletions
This file was deleted.

apps/sim/tools/context_dev/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@ export { contextDevGetBrandTool } from '@/tools/context_dev/get_brand'
88
export { contextDevGetBrandByEmailTool } from '@/tools/context_dev/get_brand_by_email'
99
export { contextDevGetBrandByNameTool } from '@/tools/context_dev/get_brand_by_name'
1010
export { contextDevGetBrandByTickerTool } from '@/tools/context_dev/get_brand_by_ticker'
11-
export { contextDevGetBrandSimplifiedTool } from '@/tools/context_dev/get_brand_simplified'
1211
export { contextDevIdentifyTransactionTool } from '@/tools/context_dev/identify_transaction'
1312
export { contextDevMapTool } from '@/tools/context_dev/map'
14-
export { contextDevPrefetchByEmailTool } from '@/tools/context_dev/prefetch_by_email'
15-
export { contextDevPrefetchDomainTool } from '@/tools/context_dev/prefetch_domain'
1613
export { contextDevScrapeFontsTool } from '@/tools/context_dev/scrape_fonts'
1714
export { contextDevScrapeHtmlTool } from '@/tools/context_dev/scrape_html'
1815
export { contextDevScrapeImagesTool } from '@/tools/context_dev/scrape_images'

apps/sim/tools/context_dev/prefetch_by_email.ts

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)