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

# Saved searches, shortlists and comments

> Tools for organising candidates.

All the `prepare_` tools stage a change for your approval. Nothing happens until you confirm. See [How it works](https://docs.cord.com/use/how-it-works.md).

## Saved searches

A saved search is also called a feed.

### list\_saved\_searches

List your saved searches. Each one comes back with its filters, the positions it is linked to (`listingIds`, empty when it isn't linked to one) and which candidate pool it searches (`status`: `active`, `passive` or `all`).

**Permission:** read company

### prepare\_create\_saved\_search

Stage a new saved search. It supports the same filters as `search_candidates`, and shows roughly how many candidates match right now.

**Permission:** saved searches

| Input | Notes |
| - | - |
| `name` | Required |
| `listingId` | Optional. Ties the search to a position. |
| `status` | Which candidate pool it searches: `active` (default), `passive` or `all` |
| Filters | As in [`search_candidates`](https://docs.cord.com/reference/tools-search) |

### prepare\_update\_saved\_search

Stage a rename, a change of filters, or both. Only the fields you pass change. The other filters, and the sort, stay as saved. To clear a filter, pass an empty value for it. The approval shows the search as it will be saved.

**Permission:** saved searches

| Input | Notes |
| - | - |
| `savedSearchId` | Required |
| `name`, `status`, filters | Optional |

### prepare\_delete\_saved\_search

Stage deleting a saved search. This can't be undone.

**Permission:** saved searches

| Input | Notes |
| - | - |
| `savedSearchId` | Required |

## Shortlists

### list\_shortlists

List your company's shortlists.

**Permission:** read candidates

### list\_shortlist\_candidates

The candidates on one shortlist, as handles and initials. By default it returns the whole shortlist.

**Permission:** read candidates

| Input | Notes |
| - | - |
| `shortlistId` | Required |
| `limit`, `offset` | Optional, to return part of a long list |

### prepare\_create\_shortlist

Stage a new, empty shortlist.

**Permission:** shortlists and comments

| Input | Notes |
| - | - |
| `name` | Required |
| `type` | `personal` (default, only you can see it) or `shared` (everyone on your team can see it) |

### prepare\_add\_to\_shortlist

Stage adding candidates to a shortlist.

**Permission:** shortlists and comments

| Input | Notes |
| - | - |
| `shortlistId` | Required |
| `handles` | The candidates to add |
| `feedId` | Optional. Credits the add to the saved search they came from. |

### prepare\_remove\_from\_shortlist

Stage taking candidates off a shortlist. It doesn't hide them from a feed.

**Permission:** shortlists and comments

| Input | Notes |
| - | - |
| `shortlistId`, `handles` | Required |

### prepare\_delete\_shortlist

Stage deleting a whole shortlist. The candidates themselves aren't affected. This can't be undone.

**Permission:** shortlists and comments

| Input | Notes |
| - | - |
| `shortlistId` | Required |

## Hiding candidates

Hiding works within one saved search. A hidden candidate drops out of that feed, and isn't messaged.

### prepare\_hide\_candidates

**Permission:** change pipeline

| Input | Notes |
| - | - |
| `handles` | The candidates to hide |
| `feedId` | The saved search to hide them from |

### prepare\_unhide\_candidates

Stage reversing a hide.

**Permission:** change pipeline

| Input | Notes |
| - | - |
| `handles`, `feedId` | Must match the feed they were hidden from |

## Team comments

Comments are internal notes for your team. They're never sent to the candidate.

### list\_candidate\_comments

The team comments already on a candidate.

**Permission:** read candidates

| Input | Notes |
| - | - |
| `handle` | Required |

cord serves comments from a cache that refreshes just after each write, so a comment you just added can take a few seconds to appear.

Tagging a teammate in a comment isn't available yet.

### prepare\_comment\_candidates

Stage adding comments, one text per candidate.

**Permission:** shortlists and comments

| Input | Notes |
| - | - |
| `comments` | A list of `{ handle, content }` |
| `shortlistId` | Optional. Attributes the comments to a shortlist. |

### prepare\_delete\_comment

Stage deleting a comment by its id, to correct a mistake.

**Permission:** shortlists and comments

| Input | Notes |
| - | - |
| `commentID` | From `list_candidate_comments` |


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