> ## 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.

# Attention: List Kbsources

> List KB Sources. Attention List Kbsources reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

List KB Sources.

<Info>
  Tool ID: `attention_list_kbsources`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'attention_list_kbsources',
  {},
);

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

### CLI

```bash theme={null}
deepline tools execute attention_list_kbsources --input '{}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "data": [
      {
        "type": "example",
        "id": "id_123",
        "attributes": {
          "title": "VP of Engineering",
          "source_type": "manual",
          "content": "Example message"
        }
      }
    ]
  }
}
```

Use `deepline tools get attention_list_kbsources --json` for the latest machine-readable contract.

## Input reference

Returns all knowledge base sources for the organization. Content is excluded from list view — use the get endpoint for full content.

This action does not require input fields.

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Returns all knowledge base sources for the organization. Content is excluded from list view — use the get endpoint for full content.",
    "properties": {},
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.data` | `array` | No | — | List of KB sources |
| `result.data.data[].type` | `string` | No | — | Resource type |
| `result.data.data[].id` | `string` | No | — | Unique identifier of the KB source |
| `result.data.data[].attributes` | `object` | No | — | — |
| `result.data.data[].attributes.title` | `string` | No | — | Title of the KB source |
| `result.data.data[].attributes.source_type` | `"manual" \| "upload"` | No | — | Type of source: manual (inline content) or upload (S3 file) Allowed: `manual`, `upload`. |
| `result.data.data[].attributes.content` | `string` | No | — | Content of the source (present on get, absent on list) |
| `result.data.data[].attributes.format` | `string` | No | — | Content format (e.g. text/markdown, application/pdf, text/html, text/plain) |
| `result.data.data[].attributes.status` | `"pending" \| "uploading" \| "indexing" \| "indexed" \| "failed"` | No | — | Processing status of the source Allowed: `pending`, `uploading`, `indexing`, `indexed`, `failed`. |
| `result.data.data[].attributes.file_size` | `integer` | No | — | File size in bytes |
| `result.data.data[].attributes.chunk_count` | `integer` | No | — | Number of indexed chunks |
| `result.data.data[].attributes.created_at` | `string` | No | — | Creation timestamp Format: `date-time`. |
| `result.data.data[].attributes.updated_at` | `string` | No | — | Last update timestamp Format: `date-time`. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "data": {
            "type": "array",
            "description": "List of KB sources",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "Resource type"
                },
                "id": {
                  "type": "string",
                  "description": "Unique identifier of the KB source"
                },
                "attributes": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string",
                      "description": "Title of the KB source"
                    },
                    "source_type": {
                      "type": "string",
                      "description": "Type of source: manual (inline content) or upload (S3 file)",
                      "enum": [
                        "manual",
                        "upload"
                      ]
                    },
                    "content": {
                      "type": "string",
                      "description": "Content of the source (present on get, absent on list)"
                    },
                    "format": {
                      "type": "string",
                      "description": "Content format (e.g. text/markdown, application/pdf, text/html, text/plain)"
                    },
                    "status": {
                      "type": "string",
                      "description": "Processing status of the source",
                      "enum": [
                        "pending",
                        "uploading",
                        "indexing",
                        "indexed",
                        "failed"
                      ]
                    },
                    "file_size": {
                      "type": "integer",
                      "description": "File size in bytes"
                    },
                    "chunk_count": {
                      "type": "integer",
                      "description": "Number of indexed chunks"
                    },
                    "created_at": {
                      "type": "string",
                      "description": "Creation timestamp",
                      "format": "date-time"
                    },
                    "updated_at": {
                      "type": "string",
                      "description": "Last update timestamp",
                      "format": "date-time"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            }
          }
        },
        "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

* [Attention provider guide](/docs/providers/attention/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)


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