# marshal_spec

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/tools/plugin/marshal_spec)

Convert the yaml or json serialized spec to a dict.

## Signature

```python
marshal_spec(
    txt: str,
) -> dict
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `txt` | `str` | Yes | The yaml or json serialized spec. |

## Returns

`dict`

The spec as a dict.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/tools/plugin.py#L45)