# Release: Python SDK v3.45.0

By Steven Van · 2026-10-01

The Python SDK v3.45.0 adds nine Slack Code API methods, including setView for rendering tabs in code channels, plus ContainerBlock support.

The [Slack](<https://creatorstoolbox.com/tools/slack>) Python SDK [v3.45.0](<https://docs.slack.dev/reference/methods/agents.conversations.setView/>) adds support for the Slack Code API methods and the ContainerBlock layout block.

## SDK changes

- Support for the ContainerBlock layout block (container type) and related fields.

- The TableBlock model in slack\_sdk.models.blocks now allows raw\_number cells.

- Support for nine Slack Code API methods: agents.conversations.archive, create, getCanvas, listViews, removeView, setCanvasContent, setCommands, setProperties and setView.

## What setView does

agents.conversations.setView creates or updates a view in a code channel. Views let an agent render output such as diffs, plans, dashboards and reports as tabs. In Python the method is app.client.agents\_conversations\_setView. It needs a granular bot token with the code\_channels:manage scope, and special rate limits apply.

The type argument sets the kind of view and defaults to html:

- html: a full, self-contained HTML document passed as content.

- diff: raw unified diff text passed as content, in the format git diff produces.

- block\_kit: Block Kit blocks.

- canvas: a canvas\_id.

- pull\_request: a pr\_url.

## Keys, limits and interactions

Each view is identified by an agent-assigned view\_key. The first call for a key creates the content and a channel tab. Later calls with the same key update it in place and bump content\_version. A channel can hold up to 5 views, and at most one of them can be a diff. Content is capped at 1,000,000 bytes.

HTML views render in a sandbox with a restricted Content-Security-Policy. The csp argument declares extra https origins, and only resource\_domains is honored at render time today. Buttons, selects, datepickers and inputs in a block\_kit view work as they do in messages. The owning agent bot receives a block\_actions payload when a user interacts with one.

![Slack](<https://www.google.com/s2/favicons?domain=slack.com&sz=128>)

Slack

The AI work platform — channels, messaging, huddles, and workflow automation that connect your team and tools in one place.

[View Slack →](<https://creatorstoolbox.com/tools/slack>)

Sources

[Original source](<https://docs.slack.dev/changelog/2026/10/01/py-sdk>)

[Read Release: Python SDK v3.45.0 on Creators Toolbox](<https://creatorstoolbox.com/blog/slack-release-python-sdk-v3-45-0>)

---
Canonical source: https://creatorstoolbox.com/blog/slack-release-python-sdk-v3-45-0
