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

> ## Agent Instructions
> Use Stable documentation by default. Honor an explicit Beta request or a URL under /docs/beta/. If the requested version conflicts with the installed CLI package or API origin, clarify the target before writing integration code.
> Pages under /docs/beta/ document Beta; other product pages document Stable. Keep the CLI package, commands, API origin, and credentials within the selected version. State the documentation version in your answer.
> For MCP search, always pass version: Stable or version: Beta. Unfiltered search mixes both versions. For filesystem reads, keep Beta queries under /beta/ and exclude /beta/ from Stable queries; discover paths before reading them.
> The public docs base is https://photon.codes/docs. Convert MCP page paths to public URLs under that base, preserving /beta/ when present. Read https://photon.codes/docs/skill.md for version selection and https://photon.codes/docs/llms.txt for the version indexes.

# Content

> Build every outbound message shape with Spectrum content builders.

Spectrum exposes a family of content builders for text, markdown, attachments, rich previews, replies, edits, typing indicators, chat metadata, and provider-specific payloads. Any API that takes a [ContentInput](https://docs.photon.codes/docs/reference/stable/spectrum-ts/symbols/contentinput.md) accepts a plain string or a [ContentBuilder](https://docs.photon.codes/docs/reference/stable/spectrum-ts/symbols/contentbuilder.md).

Use this section when you need to choose the right outbound content shape or understand how a builder degrades across providers.

> [card] [Text](https://docs.photon.codes/docs/spectrum-ts/content/text.md)
>
> Send plain text and stream generated text into supported providers.

> [card] [Markdown](https://docs.photon.codes/docs/spectrum-ts/content/markdown.md)
>
> Send styled text that renders through each provider's native formatting model.

> [card] [Attachments](https://docs.photon.codes/docs/spectrum-ts/content/attachments.md)
>
> Send files from paths, URLs, or buffers with stable attachment IDs.

> [card] [Voice](https://docs.photon.codes/docs/spectrum-ts/content/voice.md)
>
> Send voice notes with audio metadata and provider fallbacks.

> [card] [Contacts](https://docs.photon.codes/docs/spectrum-ts/content/contacts.md)
>
> Share contact cards from structured data, users, or vCards.

> [card] [Rich links](https://docs.photon.codes/docs/spectrum-ts/content/rich-links.md)
>
> Let each platform render URLs with its native preview behavior.

> [card] [App link cards](https://docs.photon.codes/docs/spectrum-ts/content/app.md)
>
> Present URLs as tappable app-style cards where providers support them.

> [card] [Polls](https://docs.photon.codes/docs/spectrum-ts/content/polls.md)
>
> Send poll prompts and receive selected options as content.

> [card] [Groups](https://docs.photon.codes/docs/spectrum-ts/content/groups.md)
>
> Bundle multiple messages into one logical visual group.

> [card] [Custom content](https://docs.photon.codes/docs/spectrum-ts/content/custom.md)
>
> Send provider-specific structured payloads.

> [card] [Replies](https://docs.photon.codes/docs/spectrum-ts/content/replies.md)
>
> Thread content under an existing message.

> [card] [Edits](https://docs.photon.codes/docs/spectrum-ts/content/edits.md)
>
> Rewrite previously sent outbound messages.

> [card] [Unsend](https://docs.photon.codes/docs/spectrum-ts/content/unsend.md)
>
> Retract a previously sent outbound message.

> [card] [Typing indicators](https://docs.photon.codes/docs/spectrum-ts/content/typing-indicators.md)
>
> Send start and stop typing signals.

> [card] [Rename](https://docs.photon.codes/docs/spectrum-ts/content/rename.md)
>
> Rename chats through the content pipeline.

> [card] [Avatar](https://docs.photon.codes/docs/spectrum-ts/content/avatar.md)
>
> Set or clear group chat avatars.

> [card] [Membership](https://docs.photon.codes/docs/spectrum-ts/content/membership.md)
>
> Add or remove group members and leave chats.

> [card] [Composing content](https://docs.photon.codes/docs/spectrum-ts/content/composing-content.md)
>
> Send multiple content items or reply with multiple parts.

## Builder shortcut

Plain strings are equivalent to `text()`:

```ts theme={null}
await space.send("Hello, world.");
await space.send(text("Hello, world."));
```

Reach for an explicit builder when you need provider-aware behavior, structured metadata, or a content type that is not plain text.


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