# get_thread_workspace

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/workspace/get_thread_workspace)

Read a thread's durable workspace binding.

## Signature

```python
get_thread_workspace(
    thread_id: str,
) -> WorkspaceBinding | None
```

## Returns

`WorkspaceBinding | None`

The binding, or `None` when the thread is unbound.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/workspace.py#L739)