Hoe AI agents
echte tools
gebruiken

Tool execution op de OpenClaw Gateway: browser, shell, filesystem, API en mail — met capability isolation, approvals en logging vóór productie-side effects.

✓ Tool calling / MCP
✓ Readonly vs mutating
✓ Approval-scoped
✓ Audit trails

Immediate answer

Wat zijn tools
within OpenClaw?

Short answer: Tools zijn uitvoerbare capabilities die de Gateway namens een agent aanroept — browser-acties, shell, bestanden, HTTP/API, mail — via structured tool-calling (inclusief MCP-achtige integraties), niet alleen tekst in chat.

Nuance: het model kiest tool + arguments; de Gateway enforced policies, approvals, RBAC en sandbox. Zonder governance is “meer tools” alleen meer attack surface — geen productiviteit.

RBAC · Approvals · Safety

Call
structured
Exec
Gateway
Gate
approval
Log
audit

Capabilities

Welke tools AI agents gebruiken

Geen tool-marktplaats — operationele types op een self-hosted Gateway.

Browser tools

Navigate, click, type, submit in Chromium — gebruikt echte cookies. Zie browser automation.

Terminal execution

Shell-tools draaien als Gateway-user: package installs, scripts, curl — hoogste blast radius op host.

Filesystem tools

Read/write/list op paden die de Gateway mag zien — .env read is credential leak.

API tools

HTTP calls naar CRM, webhooks, interne services — mutating endpoints zijn side effects.

Mailbox tools

Read, send, forward, delete op gekoppelde mailbox — compliance en reputatie-risico.

Monitoring tools

Gateway status, channel probe, healthz — laag risico, essentieel voor debug. Zie logs & monitoring.

Search / retrieval

RAG, docs, ticket search — readonly-achtig maar kan PII in context trekken; log queries.

Risicoklassen

Readonly vs mutating tools

In short: readonly is lager risico, niet risicoloos; mutating vereist approvals en strakke scopes.

Read

Readonly (relatief veilig)

Examples: Logs, <code>gateway status</code>, read-only API GET, mail read zonder send, DOM read zonder submit.

NB: Read op secrets-paden; injection die daarna mutating tool triggert.

Write

Filesystem writes

Examples: Create, overwrite, delete buiten tmp.

NB: Verkeerd pad = dataverlies; approval + mount boundaries.

DB

Database writes

Examples: INSERT/UPDATE/DELETE via tool of API wrapper.

NB: Bijna nooit autonoom op prod; readonly replica voor agents.

Browser

Browser submits

Examples: Form submit, checkout, admin actions in ingelogde sessie.

NB: Prompt injection → UI-actie; approvals + domain scope.

Shell

Terminal commands

Examples: Arbitrary shell via tool runtime.

NB: RCE-surface; deny-by-default op prod, approval + allowlist.

Governance

Tool governance in productie

Approval scopes

Mutating tool-calls wachten in queue tot scoped approver akkoord — zie approvals.

RBAC & tool allowlists

Welke workflow mag welke tool — RBAC & permissions.

Least privilege

Minimale tool-set per agent; geen “super-agent” met alle capabilities.

Isolated tools

Browser profiel, container, aparte API key per tool-context — capability isolation.

Audit trails

Tool-name, payload summary, approver-id, correlation-id in logs.

Logging

openclaw logs --follow + centrale retention — zonder logs geen post-mortem bij misuse.

Failures

Wanneer tool execution misgaat

Plan

Hallucinated actions

Agent roept niet-bestaande tool aan of verkeerde parameters — Gateway moet fail-closed loggen.

Select

Verkeerde tool kiezen

Mail-triage agent kiest shell-tool — te brede allowlist, niet model-fout alleen.

Retry

Retries & runaway

Zelfde mutating stap 20× na timeout — rate limits en max retries per workflow.

Browser

Browser failures

Stale DOM, session expired, CAPTCHA — lijkt op “kapotte AI”, is vaak sessie/tool state.

Shell

Terminal mistakes

Plausibel commando, destructief pad — approvals tonen exacte regel vóór exec.

Debug: OpenClaw problemen · log eerst, wipe niet.

MCP & tool-calling

Structured execution,
niet automatisch veilig

Short answer: MCP en tool-calling maken integraties voorspelbaar — governance blijft op Gateway-niveau (policies, approvals, RBAC).

  • → Model ↔ tool: Het LLM kiest een tool + structured arguments; de Gateway voert uit en stuurt resultaat terug — geen “tekst-only” grens meer.
  • → Structured execution: MCP en tool-calling standaardiseren schema’s — handig voor integraties, niet een security-laag op zich.
  • → Waarom governance: Meer tools = meer callable surface; protocol kent geen “veilig” — alleen policies, RBAC en sandbox.
  • → Waarom approvals: Human-in-the-loop vóór irreversible tool results — vooral browser submit en shell.
⚠ Geen protocol-deep-dive

Focus op productie: welke tools exposed, wie approveert, wat log je. MCP-servers toevoegen = nieuwe callable surface — zelfde review als native tools.

Production

Tooling
checklist

Combineer met Docker isolation and workflow-scopes per agent.

📋 Agent tools productie

Overexposure

Wanneer agents te veel tools krijgen

Short answer: brede allowlists verhogen kans op verkeerde tool-keuze, injection chains en approval fatigue.

Privilege escalation

Agent met config-write of credential tool kan zichzelf breder maken — deny op prod.

Browser misuse

Admin-sessie + brede navigate tool = injection wordt account takeover.

Filesystem damage

Delete/sync tools zonder pad-allowlist — één hallucinatie = incident.

Secrets leakage

Read tool op home dir + agent plakt output in channel.

Approval bypass risico

Te veel auto-approve “kleine” writes — aanvaller chaint kleine stappen.

FAQ

Agent tools —
direct answer

Tool execution, risico’s en governance — kort eerst.

Architectuur vraag →

Short answer: Callable capabilities op de OpenClaw Gateway — browser, shell, filesystem, API, mail — die het model via tool-calling/MCP kan aanroepen met structured arguments.

Nuance: tools voeren uit; het antwoord in chat is geen substituut voor governance op die uitvoering.

Follow-up: workflows · hub

Short answer: Shell, filesystem write/delete, browser submit, mail send/delete, mutating API, productie-DB writes, config/credential tools.

Cause: onomkeerbare of compliance-kritieke side effects.

Follow-up: safety · approvals

Short answer: Zonder gate is elke tool-call directe uitvoering — fout plan of injection wordt actie.

Nuance: readonly tools mogen lichter; destructive niet.

Follow-up: approvals

Short answer: Tools die geen mutating side effect hebben — logs, status, read-only GET, DOM read zonder submit.

Cause: readonly ≠ veilig: secrets en PII kunnen alsnog gelekt worden.

Advice: pad-allowlist + audit.

Short answer: Ja, als shell-tool in scope staat — als Gateway-user op host of in container.

Cause: shell is RCE-surface; meest restrictieve tool in productie.

Follow-up: approval + RBAC + geen root.

Short answer: Minimale allowlist, approvals op mutating, RBAC, isolated sessions, logging, retry limits, deny config-write.

Cause: misuse = te brede tools + geen audit.

Follow-up: logs · incident problems

Short answer: Ze gebruiken ingelogde sessies en kunnen submit/click uitvoeren — prompt injection wordt UI-actie.

Cause: geen tekst-only sandbox.

Follow-up: browser automation · domain allowlist · approvals op submit.

Tooling

Veilige tooling &
agent-architectuur

We reviewen tool allowlists, MCP exposure, approval policies en logging op jullie Gateway — deployment audits voor self-hosted teams, geen AI-skills marketplace.

✓ Tool governance
✓ Deployment audit
✓ Capability boundaries