kdeps-components-browser
v1.0.0kdeps kdeps-component: browser
set components / shelf workflow
PurposeDrive a real browser with Playwright through the kdeps API
LLM context: ~431 tokens when loaded (prompt or tool definition)
Where it runs
Part of the components set, used in workflow and agent mode. Ready-made workflow steps (sql, browser, email, git, ocr...) a resource calls by name; in agent mode they are also tools.
- a resource names a component (or the model calls it as a tool)
- the component's own resources runcomponents/browser
- its output goes back to the caller
Loaded by: kdeps (agent loop), kdeps validate, kdeps run, kdeps bundle package, kdeps env, kdeps export k8s, kdeps test, kdeps bundle build
In the code: kdeps (agent loop)yaml.(*Parser).ParseWorkflowyaml.(*Parser).loadAssetComponents
Install
A kdeps asset: installed with the first-run profile that includes its set, or the first time a command needs it, and updated without a new release.
Also installs what it requires, when missing or older: schemas/v1, tools/browser.
Pin a version with kdeps install components/browser@<version>.
Contents
component.yaml
apiVersion: kdeps.io/v1
kind: Component
metadata:
name: browser
description: Drive a real browser with Playwright through the kdeps API
version: "1.0.0"
interface:
inputs:
- name: url
type: string
description: Page to open first. With a sessionId and no url, the session's last page
- name: actions
type: array
description: "Steps in order, e.g. [{action: fill, selector: '#q', value: kdeps}, {action: press, key: Enter}]"
- name: engine
type: string
default: chromium
description: chromium, firefox or webkit. The engine's browser downloads on first use
- name: headless
type: boolean
default: true
description: Run without a window
- name: sessionId
type: string
description: Keep cookies, storage and the current page between calls with the same id
- name: viewport
type: object
description: "{width, height}. Default: 1280x720"
- name: timeout
type: string
default: 30s
description: Per-step timeout as a duration
- name: waitFor
type: string
description: Selector to wait for after the first page loads
- name: userAgent
type: string
description: User-Agent override
- name: stealthMode
type: boolean
default: false
description: Launch flags and context settings that make automation less detectable
- name: extract
type: string
default: body
description: Selector of the element whose text the output holds
- name: maxText
type: integer
default: 20000
description: Most characters of text in the output
- name: since
type: string
description: A hash from an earlier call; changed is empty while the text keeps that hash
# The tool returns {success, url, title, text, hash, changed, sessionId,
# actionResults}: the page it ended on and each step's result fields.
output: "{{ fromJSON(output('call').body) }}"
resources:
- actionId: call
name: Browser
httpClient:
method: POST
# In-process host. The HTTP executor calls the handler without dialing.
url: http://kdeps.api/apis/tools.kdeps.io/v1/tools/browser/call
headers:
Content-Type: application/json
failOnError: true
timeout: 600s # hard stop for the call; each step's own timeout fires first
data:
url: "{{ get('browser.url') }}"
actions: "{{ get('browser.actions') }}"
engine: "{{ get('browser.engine') }}"
headless: "{{ get('browser.headless') }}"
sessionId: "{{ get('browser.sessionId') }}"
viewport: "{{ get('browser.viewport') }}"
timeout: "{{ get('browser.timeout') }}"
waitFor: "{{ get('browser.waitFor') }}"
userAgent: "{{ get('browser.userAgent') }}"
stealthMode: "{{ get('browser.stealthMode') }}"
extract: "{{ get('browser.extract') }}"
maxText: "{{ get('browser.maxText') }}"
since: "{{ get('browser.since') }}"
requires:
schemas/v1: ""
tools/browser: ""
version: 1.0.0
requires:
schemas/v1: ""
tools/browser: ""
files:
component.yaml: |
apiVersion: kdeps.io/v1
kind: Component
metadata:
name: browser
description: Drive a real browser with Playwright through the kdeps API
version: "1.0.0"
interface:
inputs:
- name: url
type: string
description: Page to open first. With a sessionId and no url, the session's last page
- name: actions
type: array
description: "Steps in order, e.g. [{action: fill, selector: '#q', value: kdeps}, {action: press, key: Enter}]"
- name: engine
type: string
default: chromium
description: chromium, firefox or webkit. The engine's browser downloads on first use
- name: headless
type: boolean
default: true
description: Run without a window
- name: sessionId
type: string
description: Keep cookies, storage and the current page between calls with the same id
- name: viewport
type: object
description: "{width, height}. Default: 1280x720"
- name: timeout
type: string
default: 30s
description: Per-step timeout as a duration
- name: waitFor
type: string
description: Selector to wait for after the first page loads
- name: userAgent
type: string
description: User-Agent override
- name: stealthMode
type: boolean
default: false
description: Launch flags and context settings that make automation less detectable
- name: extract
type: string
default: body
description: Selector of the element whose text the output holds
- name: maxText
type: integer
default: 20000
description: Most characters of text in the output
- name: since
type: string
description: A hash from an earlier call; changed is empty while the text keeps that hash
# The tool returns {success, url, title, text, hash, changed, sessionId,
# actionResults}: the page it ended on and each step's result fields.
output: "{{ fromJSON(output('call').body) }}"
resources:
- actionId: call
name: Browser
httpClient:
method: POST
# In-process host. The HTTP executor calls the handler without dialing.
url: http://kdeps.api/apis/tools.kdeps.io/v1/tools/browser/call
headers:
Content-Type: application/json
failOnError: true
timeout: 600s # hard stop for the call; each step's own timeout fires first
data:
url: "{{ get('browser.url') }}"
actions: "{{ get('browser.actions') }}"
engine: "{{ get('browser.engine') }}"
headless: "{{ get('browser.headless') }}"
sessionId: "{{ get('browser.sessionId') }}"
viewport: "{{ get('browser.viewport') }}"
timeout: "{{ get('browser.timeout') }}"
waitFor: "{{ get('browser.waitFor') }}"
userAgent: "{{ get('browser.userAgent') }}"
stealthMode: "{{ get('browser.stealthMode') }}"
extract: "{{ get('browser.extract') }}"
maxText: "{{ get('browser.maxText') }}"
since: "{{ get('browser.since') }}"
Versions
| Version | Published | Status | Source |
|---|---|---|---|
| 1.0.0 | 11/28/2026 | active | GitHub v1.0.0 |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.0.0
- Published
- 11/28/2026