Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Content Translation Redirect Module content_translation_redirect crossed 1,000 active installs.

This module integrates the Tool module with Drupal's core Workspaces to manage content staging. It allows programmatic creation, switching, and checking of workspace status, enabling automated workflows and content publishing.

The Tool - Workspace module provides workspace management tools that integrate the Tool module with the core Workspaces module. It enables content staging operations through the Tool module's plugin system.

The primary use case for this module is:

  • Create and manage workspaces programmatically
  • Switch between workspaces during automated workflows
  • Check workspace status and existence before performing operations
  • Integrate workspace operations into tool-based workflows

REQUIREMENTS

This module requires the following modules:

Optional modules for extended functionality:

  • WSE (wse) - For workspace revert functionality
  • WSE Preview (part of wse module) - For generating shareable workspace preview links

INSTALLATION

Install as you would normally install a contributed Drupal module. See: https://www.drupal.org/docs/extending-drupal/installing-modules for further information.

TOOLS PROVIDED

  • Check workspace exists (workspace_exists): Verifies if a workspace with the given ID exists.
  • Get active workspace (workspace_get_active): Returns information about the currently active workspace or indicates if viewing the Live site.
  • Create workspace (workspace_create): Creates a new workspace without switching to it.
  • Switch workspace (workspace_switch): Switches the current session to an existing workspace.
  • Create and switch to workspace (workspace_create_and_switch): Creates a new workspace and immediately switches to it with rollback on failure.
  • Get workspace tracked content (workspace_tracked_content): Returns
    tracked content in a workspace with summary counts and optional detailed
    listing.
  • Publish workspace (workspace_publish): Publishes all tracked content in
    a workspace to Live. Only top-level workspaces can be published.
  • Revert workspace (workspace_revert): Reverts a published (closed)
    workspace, undoing its changes from Live and reopening it. Requires the WSE
    module.
  • Generate workspace preview link (workspace_preview_link): Generates a
    shareable preview link for a workspace with configurable expiry. Requires the
    WSE Preview module.
  • Delete workspace (workspace_delete): Deletes an non-active workspace.

WORKSPACE COMPATIBILITY

This module marks certain operational entity types as ignored by workspaces, allowing them to be saved regardless of the active workspace context.

Currently ignored entity types:

  • ai_agent_decision - Enables compatibility with AI Agents Explorer module
  • ai_log - Compatibility of the AI logging

Activity

Total releases
4
First release
Jan 2026
Latest release
3 months ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.0-alpha3 Pre-release Mar 18, 2026
1.0.0-alpha2 Pre-release Mar 17, 2026
1.0.0-alpha1 Pre-release Jan 20, 2026
1.0.x-dev Dev Jan 20, 2026