TaskFlow
DashboardFreewriteWhiteboardsProjectsCRMTasksNotificationsSettingsAgent TowerAPI Docs
OpenClaw Docs
?

User

Member

Caricamento in corso...

Home
Progetti
Task
Notifiche
CRM

    OpenClaw

    Documentation Mirror

    Documentation Overview

    Docs

    Auth credential semantics
    Scheduled tasks
    Hooks
    Automation & tasks
    Standing orders
    Task flow
    Background tasks
    BlueBubbles
    Broadcast groups
    Channel routing
    Discord
    Feishu
    Google Chat
    Group messages
    Groups
    iMessage
    Chat channels
    IRC
    LINE
    Channel location parsing
    Matrix
    Matrix migration
    Matrix push rules for quiet previews
    Mattermost
    Microsoft Teams
    Nextcloud Talk
    Nostr
    Pairing
    QA channel
    QQ bot
    Signal
    Slack
    Synology Chat
    Telegram
    Tlon
    Channel troubleshooting
    Twitch
    WeChat
    WhatsApp
    Yuanbao
    Zalo
    Zalo personal
    CI pipeline
    ACP
    Agent
    Agents
    Approvals
    Backup
    Browser
    Channels
    Clawbot
    `openclaw commitments`
    Completion
    Config
    Configure
    Cron
    Daemon
    Dashboard
    Devices
    Directory
    DNS
    Docs
    Doctor
    Flows (redirect)
    Gateway
    Health
    Hooks
    CLI reference
    Inference CLI
    Logs
    MCP
    Memory
    Message
    Migrate
    Models
    Node
    Nodes
    Onboard
    Pairing
    Plugins
    Proxy
    QR
    Reset
    Sandbox CLI
    Secrets
    Security
    Sessions
    Setup
    Skills
    Status
    System
    `openclaw tasks`
    TUI
    Uninstall
    Update
    Voicecall
    Webhooks
    Wiki
    Active memory
    Agent runtime
    Agent loop
    Agent runtimes
    Agent workspace
    Gateway architecture
    Channel docking
    Inferred commitments
    Compaction
    Context
    Context engine
    Delegate architecture
    Dreaming
    Experimental features
    Features
    Markdown formatting
    Memory overview
    Builtin memory engine
    Honcho memory
    QMD memory engine
    Memory search
    Messages
    Model failover
    Model providers
    Models CLI
    Multi-agent routing
    OAuth
    OpenClaw App SDK
    Presence
    QA overview
    Matrix QA
    Command queue
    Steering queue
    Retry policy
    Session management
    Session pruning
    Session tools
    SOUL.md personality guide
    Streaming and chunking
    System prompt
    Timezones
    TypeBox
    Typing indicators
    Usage tracking
    Date and time
    Node + tsx crash
    Diagnostics flags
    Authentication
    Background exec and process tool
    Bonjour discovery
    Bridge protocol
    CLI backends
    Configuration — agents
    Configuration — channels
    Configuration — tools and custom providers
    Configuration
    Configuration examples
    Configuration reference
    Diagnostics export
    Discovery and transports
    Doctor
    Gateway lock
    Health checks
    Heartbeat
    Gateway runbook
    Local models
    Gateway logging
    Multiple gateways
    Network model
    OpenAI chat completions
    OpenResponses API
    OpenShell
    OpenTelemetry export
    Gateway-owned pairing
    Prometheus metrics
    Gateway protocol
    Remote access
    Remote gateway setup
    Sandbox vs tool policy vs elevated
    Sandboxing
    Secrets management
    Secrets apply plan contract
    Security audit checks
    Security
    Tailscale
    Tools invoke API
    Troubleshooting
    Trusted proxy auth
    Debugging
    Environment variables
    FAQ
    FAQ: first-run setup
    FAQ: models and auth
    GPT-5.5 / Codex agentic parity
    GPT-5.5 / Codex parity maintainer notes
    Help
    Scripts
    Testing
    Testing: live suites
    General troubleshooting
    OpenClaw
    Ansible
    Azure
    Bun (experimental)
    ClawDock
    Release channels
    DigitalOcean
    Docker
    Docker VM runtime
    exe.dev
    Fly.io
    GCP
    Hetzner
    Hostinger
    Install
    Installer internals
    Kubernetes
    macOS VMs
    Migration guide
    Migrating from Claude
    Migrating from Hermes
    Nix
    Node.js
    Northflank
    Oracle Cloud
    Podman
    Railway
    Raspberry Pi
    Render
    Uninstall
    Updating
    Logging
    Network
    Audio and voice notes
    Camera capture
    Image and media support
    Nodes
    Location command
    Media understanding
    Talk mode
    Node troubleshooting
    Voice wake
    Pi integration architecture
    Pi development workflow
    Android app
    Platforms
    iOS app
    Linux app
    Gateway on macOS
    Canvas
    Gateway lifecycle
    macOS dev setup
    Health checks (macOS)
    Menu bar icon
    macOS logging
    Menu bar
    Peekaboo bridge
    macOS permissions
    Remote control
    macOS signing
    Skills (macOS)
    Voice overlay
    Voice wake (macOS)
    WebChat (macOS)
    macOS IPC
    macOS app
    Windows
    Plugin internals
    Plugin architecture internals
    Building plugins
    Plugin bundles
    Codex Computer Use
    Codex harness
    Community plugins
    Plugin compatibility
    Google Meet plugin
    Plugin hooks
    Plugin manifest
    Memory LanceDB
    Memory wiki
    Message presentation
    Agent harness plugins
    Building channel plugins
    Channel turn kernel
    Plugin entry points
    Plugin SDK migration
    Plugin SDK overview
    Building provider plugins
    Plugin runtime helpers
    Plugin setup and config
    Plugin SDK subpaths
    Plugin testing
    Skill workshop plugin
    Voice call plugin
    Webhooks plugin
    Zalo personal plugin
    OpenProse
    Alibaba Model Studio
    Anthropic
    Arcee AI
    Azure Speech
    Amazon Bedrock
    Amazon Bedrock Mantle
    Chutes
    Claude Max API proxy
    Cloudflare AI gateway
    ComfyUI
    Deepgram
    Deepinfra
    DeepSeek
    ElevenLabs
    Fal
    Fireworks
    GitHub Copilot
    GLM (Zhipu)
    Google (Gemini)
    Gradium
    Groq
    Hugging Face (inference)
    Provider directory
    Inferrs
    Inworld
    Kilocode
    LiteLLM
    LM Studio
    MiniMax
    Mistral
    Model provider quickstart
    Moonshot AI
    NVIDIA
    Ollama
    OpenAI
    OpenCode
    OpenCode Go
    OpenRouter
    Perplexity
    Qianfan
    Qwen
    Runway
    SGLang
    StepFun
    Synthetic
    Tencent Cloud (TokenHub)
    Together AI
    Venice AI
    Vercel AI gateway
    vLLM
    Volcengine (Doubao)
    Vydra
    xAI
    Xiaomi MiMo
    Z.AI
    Default AGENTS.md
    Release policy
    API usage and costs
    Credits
    Device model database
    Full release validation
    Memory configuration reference
    OpenClaw App SDK API design
    Prompt caching
    Rich output protocol
    RPC adapters
    SecretRef credential surface
    Session management deep dive
    AGENTS.md template
    BOOT.md template
    BOOTSTRAP.md template
    HEARTBEAT.md template
    IDENTITY template
    SOUL.md template
    TOOLS.md template
    USER template
    Tests
    Token use and costs
    Transcript hygiene
    Onboarding reference
    Contributing to the threat model
    Threat model (MITRE ATLAS)
    Formal verification (security models)
    Network proxy
    Agent bootstrapping
    Docs directory
    Getting started
    Docs hubs
    OpenClaw lore
    Onboarding (macOS app)
    Onboarding overview
    Personal assistant setup
    Setup
    Showcase
    Onboarding (CLI)
    CLI automation
    CLI setup reference
    ACP agents
    ACP agents — setup
    Agent send
    apply_patch tool
    Brave search
    Browser (OpenClaw-managed)
    Browser control API
    Browser troubleshooting
    Browser login
    WSL2 + Windows + remote Chrome CDP troubleshooting
    BTW side questions
    ClawHub
    Code execution
    Creating skills
    Diffs
    DuckDuckGo search
    Elevated mode
    Exa search
    Exec tool
    Exec approvals
    Exec approvals — advanced
    Firecrawl
    Gemini search
    Grok search
    Image generation
    Tools and plugins
    Kimi search
    LLM task
    Lobster
    Tool-loop detection
    Media overview
    MiniMax search
    Multi-agent sandbox and tools
    Music generation
    Ollama web search
    PDF tool
    Perplexity search
    Plugins
    Reactions
    SearXNG search
    Skills
    Skills config
    Slash commands
    Sub-agents
    Tavily
    Thinking levels
    Tokenjuice
    Trajectory bundles
    Text-to-speech
    Video generation
    Web search
    Web fetch
    Linux server
    Control UI
    Dashboard
    Web
    TUI
    WebChat

    OpenAPI Specs

    openapi
    TaskFlow
    docs/openclaw
    Original Docs

    Real-time Synchronized Documentation

    Last sync: 01/05/2026 07:00:29

    Note: This content is mirrored from docs.openclaw.ai and is subject to their terms and conditions.

    OpenClaw Docs

    v2.4.0 Production

    Last synced: Today, 22:00

    Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.

    Use this file to discover all available pages before exploring further.

    PDF tool

    text
    pdf
    analyzes one or more PDF documents and returns text.

    Quick behavior:

    • Native provider mode for Anthropic and Google model providers.
    • Extraction fallback mode for other providers (extract text first, then page images when needed).
    • Supports single (
      text
      pdf
      ) or multi (
      text
      pdfs
      ) input, max 10 PDFs per call.

    Availability

    The tool is only registered when OpenClaw can resolve a PDF-capable model config for the agent:

    1. text
      agents.defaults.pdfModel
    2. fallback to
      text
      agents.defaults.imageModel
    3. fallback to the agent's resolved session/default model
    4. if native-PDF providers are auth-backed, prefer them ahead of generic image fallback candidates

    If no usable model can be resolved, the

    text
    pdf
    tool is not exposed.

    Availability notes:

    • The fallback chain is auth-aware. A configured
      text
      provider/model
      only counts if OpenClaw can actually authenticate that provider for the agent.
    • Native PDF providers are currently Anthropic and Google.
    • If the resolved session/default provider already has a configured vision/PDF model, the PDF tool reuses that before falling back to other auth-backed providers.

    Input reference

    One PDF path or URL. Multiple PDF paths or URLs, up to 10 total. Analysis prompt. Page filter like `1-5` or `1,3,7-9`. Optional model override in `provider/model` form. Per-PDF size cap in MB. Defaults to `agents.defaults.pdfMaxBytesMb` or `10`.

    Input notes:

    • text
      pdf
      and
      text
      pdfs
      are merged and deduplicated before loading.
    • If no PDF input is provided, the tool errors.
    • text
      pages
      is parsed as 1-based page numbers, deduped, sorted, and clamped to the configured max pages.
    • text
      maxBytesMb
      defaults to
      text
      agents.defaults.pdfMaxBytesMb
      or
      text
      10
      .

    Supported PDF references

    • local file path (including
      text
      ~
      expansion)
    • text
      file://
      URL
    • text
      http://
      and
      text
      https://
      URL
    • OpenClaw-managed inbound refs such as
      text
      media://inbound/<id>

    Reference notes:

    • Other URI schemes (for example
      text
      ftp://
      ) are rejected with
      text
      unsupported_pdf_reference
      .
    • In sandbox mode, remote
      text
      http(s)
      URLs are rejected.
    • With workspace-only file policy enabled, local file paths outside allowed roots are rejected.
    • Managed inbound refs and replayed paths under OpenClaw's inbound media store are allowed with workspace-only file policy.

    Execution modes

    Native provider mode

    Native mode is used for provider

    text
    anthropic
    and
    text
    google
    . The tool sends raw PDF bytes directly to provider APIs.

    Native mode limits:

    • text
      pages
      is not supported. If set, the tool returns an error.
    • Multi-PDF input is supported; each PDF is sent as a native document block / inline PDF part before the prompt.

    Extraction fallback mode

    Fallback mode is used for non-native providers.

    Flow:

    1. Extract text from selected pages (up to
      text
      agents.defaults.pdfMaxPages
      , default
      text
      20
      ).
    2. If extracted text length is below
      text
      200
      chars, render selected pages to PNG images and include them.
    3. Send extracted content plus prompt to the selected model.

    Fallback details:

    • Page image extraction uses a pixel budget of
      text
      4,000,000
      .
    • If the target model does not support image input and there is no extractable text, the tool errors.
    • If text extraction succeeds but image extraction would require vision on a text-only model, OpenClaw drops the rendered images and continues with the extracted text.
    • Extraction fallback uses the bundled
      text
      document-extract
      plugin. The plugin owns
      text
      pdfjs-dist
      ;
      text
      @napi-rs/canvas
      is used only when image rendering fallback is available.

    Config

    json5
    { agents: { defaults: { pdfModel: { primary: "anthropic/claude-opus-4-6", fallbacks: ["openai/gpt-5.4-mini"], }, pdfMaxBytesMb: 10, pdfMaxPages: 20, }, }, }

    See Configuration Reference for full field details.

    Output details

    The tool returns text in

    text
    content[0].text
    and structured metadata in
    text
    details
    .

    Common

    text
    details
    fields:

    • text
      model
      : resolved model ref (
      text
      provider/model
      )
    • text
      native
      :
      text
      true
      for native provider mode,
      text
      false
      for fallback
    • text
      attempts
      : fallback attempts that failed before success

    Path fields:

    • single PDF input:
      text
      details.pdf
    • multiple PDF inputs:
      text
      details.pdfs[]
      with
      text
      pdf
      entries
    • sandbox path rewrite metadata (when applicable):
      text
      rewrittenFrom

    Error behavior

    • Missing PDF input: throws
      text
      pdf required: provide a path or URL to a PDF document
    • Too many PDFs: returns structured error in
      text
      details.error = "too_many_pdfs"
    • Unsupported reference scheme: returns
      text
      details.error = "unsupported_pdf_reference"
    • Native mode with
      text
      pages
      : throws clear
      text
      pages is not supported with native PDF providers
      error

    Examples

    Single PDF:

    json
    { "pdf": "/tmp/report.pdf", "prompt": "Summarize this report in 5 bullets" }

    Multiple PDFs:

    json
    { "pdfs": ["/tmp/q1.pdf", "/tmp/q2.pdf"], "prompt": "Compare risks and timeline changes across both documents" }

    Page-filtered fallback model:

    json
    { "pdf": "https://example.com/report.pdf", "pages": "1-3,7", "model": "openai/gpt-5.4-mini", "prompt": "Extract only customer-impacting incidents" }

    Related

    • Tools Overview — all available agent tools
    • Configuration Reference — pdfMaxBytesMb and pdfMaxPages config

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine