# Docs

> NoClick's docs as Markdown: the guides, skills (task playbooks), SDK reference, examples and API operations, searched and read with no key, as `noclick docs` and `noclick skill` print them.

## noclick.Docs

```python
class Docs
```

NoClick's docs, for code and coding agents: no key needed.

### Docs.search

```python
noclick.Docs.search(query=None, *, kind=None, limit=20, base_url=None) -> list[DocHit]
```

Search the docs, best first; with no `query`, list every guide page and skill (or `kind`'s:
`guide`, `skill`, `reference`, `example`, `event`, `api`).

Parameters:

- `query` (`str | None`, default `None`)
- `kind` (`str | None`, default `None`)
- `limit` (`int`, default `20`): Return at most this many.
- `base_url` (`str | None`, default `None`)

Returns: `list[DocHit]` Up to `limit` hits (at most 50 with a query).

Usage:

```python
for hit in noclick.Docs.search("send email from an agent", limit=5):
    print(hit.id, hit.title)
```

### Docs.read

```python
noclick.Docs.read(doc_id, *, base_url=None) -> Doc
```

Read one doc whole: a hit's `id`, or a bare name (`apps`), which reads the guide, else the skill, so
named. One nobody has raises `noclick.NotFound`.

Parameters:

- `doc_id` (`str`, required)
- `base_url` (`str | None`, default `None`)

Returns: `Doc` The doc, its `text` as Markdown.

Usage:

```python
print(noclick.Docs.read("skill:ship-an-app").text)
```

## noclick.Doc

```python
class Doc
```

One guide page or section, skill, reference entry, example or API operation, whole: `text` is Markdown,
and `sections` names a page's sections by id.

| Attribute | Type | Description |
| --- | --- | --- |
| `id` | `str` |  |
| `kind` | `str` |  |
| `title` | `str` |  |
| `summary` | `str` |  |
| `url` | `str | None` |  |
| `status` | `str` |  |
| `text` | `str` |  |
| `sections` | `list[str]` |  |
| `raw` | `dict[str, Any]` | The response JSON exactly as the API sent it. |

## noclick.DocHit

```python
class DocHit
```

A doc a search found, or one a listing names: its `id` (`guide:apps`, `skill:ship-an-app`) reads it
whole with `Docs.read`.

| Attribute | Type | Description |
| --- | --- | --- |
| `id` | `str` |  |
| `kind` | `str` |  |
| `title` | `str` |  |
| `url` | `str | None` |  |
| `snippet` | `str` |  |
| `status` | `str` | `built`, or `designed` for an API call that doesn't work yet. |
| `raw` | `dict[str, Any]` | The response JSON exactly as the API sent it. |
