---
title: "portal_close"
description: "Closes the session and returns the steps that worked as a script, to save in a company skill."
---

| Tool | Kind | Purpose |
| :-- | :-- | :-- |
| `portal_close` | write | Closes the session and returns the steps that worked as a script, to save in a company skill. |

Group: [Portal connections](/docs/en-US/agents/mcp/portal-connections).
