# pinned_skill_parts

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/skills/invocation/pinned_skill_parts)

Return the skill a pinned-skill message carries.

## Signature

```python
pinned_skill_parts(
    message: object,
) -> tuple[str, str, str] | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `message` | `object` | Yes | Any message from the stream or a checkpoint. |

## Returns

`tuple[str, str, str] | None`

`(name, description, body)` with the SDK's `<skill>` wrapper removed,
or `None` when `message` does not pin a skill.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/efa9f5364b83e9367ea57d9c21b15b4d81fdcb7a/libs/code/deepagents_code/skills/invocation.py#L204)