---
title: "PDF-lib Agent"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/agents/pdflibagent
markdown: https://docs.nodetool.ai/nodes/nodetool/agents/pdflibagent.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/agents/pdflibagent.md
---

# PDF-lib Agent

**Type:** `nodetool.agents.PdfLibAgent`

**Namespace:** `nodetool.agents`

## Description

Create and edit PDF files from a plain-language description.
    agent, pdf, document, edit

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| model | `language_model` | Model used for PDF task planning and execution reasoning. | `{"type":"language_model","provider":"empty","id...` |
| document | `document` | Optional PDF/document input for transformation or analysis. | `{"type":"document","uri":"","asset_id":null,"da...` |
| prompt | `str` | Prompt describing the PDF processing task. | `` |
| timeout_seconds | `int` | Maximum runtime for agent execution. | `300` |
| max_output_chars | `int` | Maximum serialized output chars before truncation. | `220000` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| document | `document` |  |
| text | `str` |  |

## Related Nodes

Browse other nodes in the [nodetool.agents](./) namespace.
