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

# List Cleaner

> Cleans one pasted list: normalizes each item, drops duplicates and excluded items, caps the list, and saves it as a CSV.

**Category:** Operations · **Connections:** none · **Public stage:** Simulated · **Runs:** when you start it

> [!NOTE]
>
> This agent is published at the **Simulate** stage: it has completed a simulation, but its public version hasn't been proven on real runs yet. Try it with **Simulate** first.

## What it does

List Cleaner takes a pasted list of companies, people or anything else and returns a tidy version as a CSV file. It normalizes each item (by domain, email, profile URL, then name), drops duplicates and anything on your exclude list, and keeps up to your cap. Items it drops or cuts are listed with the reason, never silently removed. It does no web search, contacts no one and sends nothing.

## What you give it

| Input | Required | What to put in |
| - | - | - |
| `items` | Yes | The list: one item per line (for example `Name, domain`, a name, or a domain), comma-separated, or a CSV export with a header row. |
| `exclude` | No | Items to drop, one per line or comma-separated, by name or domain. |
| `item_kind` | No | What the items are, for example `company` or `person`. |
| `max_items` | No | How many items to keep, up to 25. The rest are listed as dropped. |

## What it needs connected

Nothing. It uses no outside service.

## How it runs

1. **Clean.** Reads the list, normalizes each item, drops duplicates and excluded items, and applies the cap, noting a reason for every item dropped. Unreadable lines are reported, not guessed.
2. **Save.** Saves the accepted items as a CSV with a header row.

## What you get

* A CSV file with one row per accepted item.
* A list of dropped items, each with the reason, and any unreadable lines.

## Tips

* Include domains or emails where you have them; they're used first to spot duplicates.
* Check the dropped items to confirm nothing you wanted was removed.

## Use it

See [Use a public agent](https://docs.joystream.ai/agents/overview.md#use-a-public-agent).


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