<!-- Sema documentation — std.toml
     Sema is a new AI-native, neurosymbolic programming language most models
     have not been trained on. Full corpus: https://sema.cortex.a2olabs.com/llms-full.txt
     Install language support: https://sema.cortex.a2olabs.com/install-skill/ -->

# std.toml

> Reflected API reference for the Sema standard-library module std.toml.

> Generated by `sema doc` from `crates/sema-runtime/assets/stdlib/sema/toml.sema`. Import with `from std.toml import …`. For a narrative introduction see [std.toml](/stdlib/toml/).

# `toml`

Bounded native TOML decoder.

# `def read`

```sema
def read(pathname: str) -> Any !{fs.read}
```

**Parameters**

| name | type |
|---|---|
| `pathname` | `str` |

**Returns** `Any`

**Effects** `!{fs.read}`

# `def decode`

```sema
def decode(text: str) -> Any !{}
```

**Parameters**

| name | type |
|---|---|
| `text` | `str` |

**Returns** `Any`

**Effects** `!{}`
