Skip to content

Commit 4fa2550

Browse files
feat(api): api update
1 parent 05e1dab commit 4fa2550

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 21
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-955fa0d672331fb3f8b40547895bfdd1e490add254ca13db769289d3bef2ed44.yml
3-
openapi_spec_hash: 32eca3166fb8f369c9241faf4cee3077
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-c023cdf4ae403e8c32724869eff157cb24d4436b7c048809571c41f08dd20e03.yml
3+
openapi_spec_hash: b92878e27bdb184e1506f4baf3280118
44
config_hash: 682b89b02a20f5d1c13e2c91ecbcf5ce

packages/mcp-server/src/local-docs-search.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ const EMBEDDED_METHODS: MethodEntry[] = [
5454
name: 'web_scrape_html',
5555
endpoint: '/web/scrape/html',
5656
httpMethod: 'get',
57-
summary: 'Scrape raw HTML from a URL',
57+
summary: 'Scrape HTML',
5858
description: 'Scrapes the given URL and returns the raw HTML content of the page.',
5959
stainlessPath: '(resource) web > (method) web_scrape_html',
6060
qualified: 'client.web.webScrapeHTML',
6161
params: ['url: string;', 'maxAgeMs?: number;'],
6262
response: '{ html: string; success: true; url: string; }',
6363
markdown:
64-
"## web_scrape_html\n\n`client.web.webScrapeHTML(url: string, maxAgeMs?: number): { html: string; success: true; url: string; }`\n\n**get** `/web/scrape/html`\n\nScrapes the given URL and returns the raw HTML content of the page.\n\n### Parameters\n\n- `url: string`\n Full URL to scrape (must include http:// or https:// protocol)\n\n- `maxAgeMs?: number`\n Return a cached result if a prior scrape for the same parameters exists and is younger than this many milliseconds. Defaults to 1 day (86400000 ms) when omitted. Set to 0 to always scrape fresh.\n\n### Returns\n\n- `{ html: string; success: true; url: string; }`\n\n - `html: string`\n - `success: true`\n - `url: string`\n\n### Example\n\n```typescript\nimport ContextDev from 'context.dev';\n\nconst client = new ContextDev();\n\nconst response = await client.web.webScrapeHTML({ url: 'https://example.com' });\n\nconsole.log(response);\n```",
64+
"## web_scrape_html\n\n`client.web.webScrapeHTML(url: string, maxAgeMs?: number): { html: string; success: true; url: string; }`\n\n**get** `/web/scrape/html`\n\nScrapes the given URL and returns the raw HTML content of the page.\n\n### Parameters\n\n- `url: string`\n Full URL to scrape (must include http:// or https:// protocol)\n\n- `maxAgeMs?: number`\n Return a cached result if a prior scrape for the same parameters exists and is younger than this many milliseconds. Defaults to 1 day (86400000 ms) when omitted. Max is 30 days (2592000000 ms). Set to 0 to always scrape fresh.\n\n### Returns\n\n- `{ html: string; success: true; url: string; }`\n\n - `html: string`\n - `success: true`\n - `url: string`\n\n### Example\n\n```typescript\nimport ContextDev from 'context.dev';\n\nconst client = new ContextDev();\n\nconst response = await client.web.webScrapeHTML({ url: 'https://example.com' });\n\nconsole.log(response);\n```",
6565
perLanguage: {
6666
http: {
6767
example:

src/resources/web.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ export interface WebWebScrapeHTMLParams {
387387
/**
388388
* Return a cached result if a prior scrape for the same parameters exists and is
389389
* younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
390-
* omitted. Set to 0 to always scrape fresh.
390+
* omitted. Max is 30 days (2592000000 ms). Set to 0 to always scrape fresh.
391391
*/
392392
maxAgeMs?: number;
393393
}

0 commit comments

Comments
 (0)