# draft

URL: /business/nouns/content/draft · Id: `verb:Content.draft` · Call: `await $.Content.draft({ … })` (SDK) or the `do` tool at `https://api.sb/mcp`. Inputs says what to pass, Outputs what returns, When it waits who approves.

> Draft writes Content of one kind from a brief, such as an article for a question the help center could not answer.

Draft writes [Content](/business/nouns/content) of one kind from a brief, such as an article for a question the help center could not answer.

## Inputs
| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `kind` | `string` | Yes | What to write. |
| `brief` | `text` | Yes | The question or brief it answers. |

## Outputs
| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `content` | [Content](/business/nouns/content) | Yes | The draft. |

## Effects
- Emits [`Content.drafted`](/business/events/Content.drafted).
- Performed by the [Content Lead](/agents/marketing/content-lead).
- Two-way: it runs at once, in the `try`, `send` and `do` modes.

## Refuses when
| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | [Content.draft](/business/nouns/content/draft) |

## When it waits
| Gate | Default |
| --- | --- |
| Decision class | Low: two-way, nothing at stake |
| [Delay window](/systems/trust-and-governance/controls/one-way-windows) | None: it runs once review passes. |
| Limit | The call [Limit](/business/nouns/limit) of the [Permission](/business/nouns/permission) it runs under. |
| Over the Limit | It waits `pending` for an [Approval](/business/nouns/approval) from the [Founder](/agents/founding/founder). Approved, it runs; refused, it ends `refused` with [`limit-exceeded`](/code/api/errors/limit-exceeded); unanswered by its deadline, it ends `canceled`. |

## Example

**Ask**

```text
Draft the latest content.
```

**API**

```bash
curl -X POST https://api.sb/quietcopy.com/content/draft \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kind":"article","brief":"Example brief"}'
```

```json
{
  "api": "https://api.sb/quietcopy.com",
  "content": {
    "$id": "https://api.sb/quietcopy.com/content/content_1",
    "$type": "Content",
    "title": "Résumé review"
  },
  "action": {
    "$id": "https://api.sb/quietcopy.com/actions/action_1",
    "operation": "Content.draft",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/quietcopy.com/actions/action_1"
  }
}
```

**SDK**

```ts
import { $ } from 'startup-builder'

const content = await $.Content.draft({ kind: 'article', brief: 'Example brief' })
```

**CLI**

```bash
npx startup-builder do Content.draft --json '{"kind":"article","brief":"Example brief"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Content.draft({ kind: 'article', brief: 'Example brief' })"
  }
}
```