@olib-ai/owl-browser-mcp 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +90 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20369,7 +20369,7 @@ var openapi_default = {
|
|
|
20369
20369
|
info: {
|
|
20370
20370
|
title: "Owl Browser API",
|
|
20371
20371
|
description: "REST API for browser automation with anti-detection capabilities",
|
|
20372
|
-
version: "1.0.
|
|
20372
|
+
version: "1.0.7"
|
|
20373
20373
|
},
|
|
20374
20374
|
servers: [
|
|
20375
20375
|
{
|
|
@@ -20391,6 +20391,85 @@ var openapi_default = {
|
|
|
20391
20391
|
}
|
|
20392
20392
|
},
|
|
20393
20393
|
paths: {
|
|
20394
|
+
"/go": {
|
|
20395
|
+
get: {
|
|
20396
|
+
summary: "Browser Go",
|
|
20397
|
+
description: "One-shot browser navigation tool. Creates a new context, navigates to the URL, waits for page load, extracts the HTML, and closes the context. Optimized for single-page scraping or rendering tasks. Supports both GET and POST requests.",
|
|
20398
|
+
tags: [
|
|
20399
|
+
"Navigation"
|
|
20400
|
+
],
|
|
20401
|
+
parameters: [
|
|
20402
|
+
{
|
|
20403
|
+
name: "url",
|
|
20404
|
+
in: "query",
|
|
20405
|
+
required: true,
|
|
20406
|
+
schema: {
|
|
20407
|
+
type: "string"
|
|
20408
|
+
},
|
|
20409
|
+
description: "The full URL to navigate to, including protocol (e.g., 'https://example.com'). Supports http://, https://, file://, and data: URLs"
|
|
20410
|
+
},
|
|
20411
|
+
{
|
|
20412
|
+
name: "wait_until",
|
|
20413
|
+
in: "query",
|
|
20414
|
+
required: false,
|
|
20415
|
+
schema: {
|
|
20416
|
+
type: "string",
|
|
20417
|
+
enum: [
|
|
20418
|
+
"",
|
|
20419
|
+
"load",
|
|
20420
|
+
"domcontentloaded",
|
|
20421
|
+
"networkidle",
|
|
20422
|
+
"fullscroll"
|
|
20423
|
+
]
|
|
20424
|
+
},
|
|
20425
|
+
description: "When to consider navigation complete: '' (return immediately), 'load' (wait for load event), 'domcontentloaded' (wait for DOMContentLoaded), 'networkidle' (wait for network to be idle, default), 'fullscroll' (scroll full page to trigger lazy loading, then scroll back to top)"
|
|
20426
|
+
},
|
|
20427
|
+
{
|
|
20428
|
+
name: "timeout",
|
|
20429
|
+
in: "query",
|
|
20430
|
+
required: false,
|
|
20431
|
+
schema: {
|
|
20432
|
+
type: "integer"
|
|
20433
|
+
},
|
|
20434
|
+
description: "Maximum time to wait for navigation in milliseconds. Default: 30000 (30 seconds)"
|
|
20435
|
+
},
|
|
20436
|
+
{
|
|
20437
|
+
name: "os",
|
|
20438
|
+
in: "query",
|
|
20439
|
+
required: false,
|
|
20440
|
+
schema: {
|
|
20441
|
+
type: "string",
|
|
20442
|
+
enum: [
|
|
20443
|
+
"windows",
|
|
20444
|
+
"macos",
|
|
20445
|
+
"linux"
|
|
20446
|
+
]
|
|
20447
|
+
},
|
|
20448
|
+
description: "Filter profiles by operating system. Options: 'windows', 'macos', 'linux'"
|
|
20449
|
+
},
|
|
20450
|
+
{
|
|
20451
|
+
name: "use_tor",
|
|
20452
|
+
in: "query",
|
|
20453
|
+
required: false,
|
|
20454
|
+
schema: {
|
|
20455
|
+
type: "boolean"
|
|
20456
|
+
},
|
|
20457
|
+
description: "Use TOR proxy for anonymous browsing. Each request gets a unique exit IP. Default: false"
|
|
20458
|
+
}
|
|
20459
|
+
],
|
|
20460
|
+
responses: {
|
|
20461
|
+
"200": {
|
|
20462
|
+
description: "Successful response"
|
|
20463
|
+
},
|
|
20464
|
+
"400": {
|
|
20465
|
+
description: "Bad request"
|
|
20466
|
+
},
|
|
20467
|
+
"401": {
|
|
20468
|
+
description: "Unauthorized"
|
|
20469
|
+
}
|
|
20470
|
+
}
|
|
20471
|
+
}
|
|
20472
|
+
},
|
|
20394
20473
|
"/api/execute/browser_create_context": {
|
|
20395
20474
|
post: {
|
|
20396
20475
|
summary: "Browser Create Context",
|
|
@@ -22248,7 +22327,7 @@ var openapi_default = {
|
|
|
22248
22327
|
"/api/execute/browser_extract_text": {
|
|
22249
22328
|
post: {
|
|
22250
22329
|
summary: "Browser Extract Text",
|
|
22251
|
-
description: "Extract visible text content from the page or a specific element. Returns plain text stripped of HTML tags. Optionally target a specific element using CSS selector or natural language description. Useful for reading page content, extracting article text,
|
|
22330
|
+
description: "Extract visible text content from the page or a specific element. Returns plain text stripped of HTML tags. Optionally target a specific element using CSS selector or natural language description. Optionally apply a regex pattern to filter/extract specific content from the text. Useful for reading page content, extracting article text, getting form values, or extracting specific data like numbers, emails, or prices.",
|
|
22252
22331
|
tags: [
|
|
22253
22332
|
"General"
|
|
22254
22333
|
],
|
|
@@ -22266,6 +22345,14 @@ var openapi_default = {
|
|
|
22266
22345
|
selector: {
|
|
22267
22346
|
type: "string",
|
|
22268
22347
|
description: "Optional CSS selector or natural language description to extract text from a specific element. If omitted, extracts all visible text from the entire page. Examples: '#main-content', 'article', 'the product description'"
|
|
22348
|
+
},
|
|
22349
|
+
regex: {
|
|
22350
|
+
type: "string",
|
|
22351
|
+
description: "Optional regex pattern to apply to the extracted text. When provided, only content matching the regex will be returned. If both selector and regex are provided, the selector extracts text first, then regex filters the result. Examples: '\\\\d+' to extract numbers, '(?<=Price: )\\\\$[\\\\d.]+' to extract prices, '[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\\\.[A-Z|a-z]{2,}' for emails"
|
|
22352
|
+
},
|
|
22353
|
+
regex_group: {
|
|
22354
|
+
type: "string",
|
|
22355
|
+
description: "Which capture group to return from the regex match. 0 returns the full match (default), 1 returns the first capture group, 2 returns the second, etc. Example: with regex 'FP ID:\\\\s*(\\\\S+)' and regex_group=1, only the ID value is returned."
|
|
22269
22356
|
}
|
|
22270
22357
|
},
|
|
22271
22358
|
required: [
|
|
@@ -27334,7 +27421,7 @@ var openapi_default = {
|
|
|
27334
27421
|
"/api/execute/server_restart_browser": {
|
|
27335
27422
|
post: {
|
|
27336
27423
|
summary: "Server Restart Browser",
|
|
27337
|
-
description: "Restart the browser process. This
|
|
27424
|
+
description: "Restart the HTTP server and browser via s6-overlay process supervisor. This performs a clean restart of the entire service, ensuring both the HTTP server and browser processes are fully restarted. Useful for recovering from browser hangs, memory issues, or applying configuration changes. All active browser contexts will be terminated. The restart is non-blocking - the response is sent before the restart occurs (~1 second delay). In Docker containers, uses s6-svc for graceful restart. Falls back to browser-only restart in non-Docker environments.",
|
|
27338
27425
|
tags: [
|
|
27339
27426
|
"General"
|
|
27340
27427
|
],
|