> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Sybill: List Documents

> Find documents in Sybill by name or source, including chat uploads and email attachments. Returns one cursor page. private documents are excluded.

Find documents in Sybill by name or source, including chat uploads and email attachments.

> [!NOTE]
>
> Tool ID: `sybill_list_documents`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'sybill_list_documents',
  {
    "sourceId": "source_123",
    "name": "Example",
    "cursor": "cursor_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run sybill_list_documents --input '{
  "sourceId": "source_123",
  "name": "Example",
  "cursor": "cursor_123"
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "documents": [
      {
        "id": "id_123",
        "displayName": "Example",
        "sourceId": "source_123",
        "remoteId": "remote_123",
        "contentType": "example"
      }
    ],
    "pagination": {
      "nextCursor": "cursor_123",
      "hasMore": false
    }
  }
}
```

Use `deepline describe sybill_list_documents --json` for the latest machine-readable contract.

## Input reference

List organization-visible documents from native or custom sources. Includes documents from custom sources, chat uploads, and mailbox attachments. Requires the **Export** permission (`read` scope). Private documents owned by individual users are excluded. Results use cursor-based pagination.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.sourceId` | `string` | No | — | — |
| `payload.name` | `string` | No | — | Maximum length: 255. |
| `payload.cursor` | `string` | No | — | Maximum length: 512. |
| `payload.limit` | `integer` | No | `50` | Minimum: 1. Maximum: 50. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "List organization-visible documents from native or custom sources. Includes documents from custom sources, chat uploads, and mailbox attachments. Requires the **Export** permission (`read` scope). Private documents owned by individual users are excluded. Results use cursor-based pagination.",
    "properties": {
      "sourceId": {
        "type": [
          "string",
          "null"
        ]
      },
      "name": {
        "type": [
          "string",
          "null"
        ],
        "maxLength": 255
      },
      "cursor": {
        "type": [
          "string",
          "null"
        ],
        "maxLength": 512
      },
      "limit": {
        "type": "integer",
        "default": 50,
        "minimum": 1,
        "maximum": 50
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.documents` | `array` | Yes | — | — |
| `result.data.documents[].id` | `string` | Yes | — | — |
| `result.data.documents[].displayName` | `string` | Yes | — | — |
| `result.data.documents[].sourceId` | `string` | Yes | — | — |
| `result.data.documents[].remoteId` | `string` | Yes | — | — |
| `result.data.documents[].url` | `string \| null` | No | — | — |
| `result.data.documents[].contentType` | `string` | Yes | — | — |
| `result.data.documents[].createdAt` | `string \| null` | No | — | — |
| `result.data.documents[].updatedAt` | `string \| null` | No | — | — |
| `result.data.pagination` | `object` | Yes | — | Cursor-based pagination metadata returned alongside list responses. All public-API list endpoints emit the same shape: pass `next_cursor` back as the `cursor` query parameter to fetch the next page. check `has_more` to know whether more pages exist. |
| `result.data.pagination.nextCursor` | `string \| null` | No | — | — |
| `result.data.pagination.hasMore` | `boolean` | No | `false` | — |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "documents": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "Trimmed document record returned by the list API. ``source_id`` identifies where the document came from: either a source UUID created through the public API, or a reserved Sybill origin string: ``\"chat_upload\"`` or ``\"mailbox_attachment\"``. ``created_at`` and ``updated_at`` describe the source record's timestamps when available.",
              "properties": {
                "id": {
                  "type": "string"
                },
                "displayName": {
                  "type": "string"
                },
                "sourceId": {
                  "type": "string"
                },
                "remoteId": {
                  "type": "string"
                },
                "url": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "contentType": {
                  "type": "string"
                },
                "createdAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "updatedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "displayName",
                "sourceId",
                "remoteId",
                "contentType"
              ],
              "additionalProperties": false
            }
          },
          "pagination": {
            "type": "object",
            "description": "Cursor-based pagination metadata returned alongside list responses. All public-API list endpoints emit the same shape: pass ``next_cursor`` back as the ``cursor`` query parameter to fetch the next page; check ``has_more`` to know whether more pages exist.",
            "properties": {
              "nextCursor": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "hasMore": {
                "type": "boolean",
                "default": false
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "documents",
          "pagination"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.