Install

Works with Drupal: ^10.5 || ^11 || ^12

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 113 KB
MD5: ee919697d2855161af25359338fa356a
SHA-1: 858f3b71d34dad1a970076fa6713fa1f47abe780
SHA-256: 26c81a74fc7e540c836341cde8c4e84a55d0c62049bcff450b3b47bbe443a60c
Download zip 259.39 KB
MD5: ac3941a6df9a4b57343ba1eaf39d5933
SHA-1: 0fd245cb07dbfd13a1a2491c68a2a5f1b24fcdd1
SHA-256: 585c3ec89ef1a64bfa5d1534276f1b61682ba95f2eaed792c564f68be70d295d

Release notes

Tool Belt 1.0.0-alpha6 adds two sub-modules and one-shot entity tools, and fixes the problems found in an end-to-end MCP test of every tool against Tool API 1.0.0-beta10. Several tool inputs and outputs changed; read Breaking changes before updating.

Requirements

  • Drupal core ^10.5 || ^11 || ^12. The minimum is now 10.5 (#3616180).
  • Tool API ^1.0.0-beta10.

New

  • entity_create and entity_update: create or update a content entity, with its fields, in one call (#3616145).
  • text_format_explain and text_format_preview: describe a text format and preview how it filters text (#3616148).
  • New sub-module tool_belt_content_moderation: workflow_list, moderation_state_get, moderation_state_set and moderation_content_list (#3616146).
  • New sub-module tool_belt_image_style: image_style_list, image_style_add, image_style_delete, image_effect_plugin_list, image_effect_add and image_effect_remove (#3616147).

Breaking changes

  • entity_field_values returns every field as a list of item objects, whatever its cardinality, with every stored property of each item (text format and summary, date range end, image alt, title, width and height). Values are typed and read the same before and after a save or reload, and can be passed back to field_set_value unchanged. Invokers receive timestamps and date-time values as RFC 3339 strings and decimals as strings. An empty field is an empty list. The referenced entity summary moved out of the items into a new referenced_entities output, and a referenced entity's label is only included when the user may see it (#3616183, #3616163, #3616203).
  • entity_bundle_field_definitions returns storage and field settings in the config shape that settings_schema describes and the field tools accept, for example allowed_values as a list of {value, label} objects. instance.field_settings now holds only the field's own settings, not the storage settings (#3616191).
  • field_storage_add and field_storage_update:
    • allowed_values must be a list of {value, label} objects; the map shape, which used to be stored as an empty value, is rejected. An entry without a label gets its value as the label (#3616191).
    • cardinality must be -1 (unlimited) or a positive number (#3616192).
    • field_storage_add only accepts the field types field_type_definitions lists: the types Field UI offers plus float, list_float and uri. Internal types such as password, path and map are rejected (#3616193).
  • field_update stores a setting sent as an empty array (for example target_bundles: [], which allows no bundles) instead of dropping it. Nested settings such as handler_settings are replaced as a whole, as the input descriptions now say (#3616190).
  • entity_bundle_add requires the bundle ID to be a machine name (lowercase letters, numbers and underscores) of at most 32 characters (#3616200).
  • send_email sends the subject and message exactly as written: tokens are no longer replaced and the token_data input is removed. Token replacement read values without checking the caller's access to them. The mail now goes out as module tool_belt_system, key send_email, instead of system / action_send_email, so mail alterations or mail system settings aimed at the old key no longer apply. Read entity values with the entity tools, which check field access, and write them into the message (#3616178).
  • entity_load_by_property returns a list of entity summaries, and the matched value is under the fixed key matched_field_value (#3616171, #3616174).
  • entity_translation_get no longer saves: it returns the translation in memory, to be saved with entity_save. field_set_value is classified as a transform, and the operation classes of other tools were corrected (#3616170).
  • entity_delete fails for an entity that was never saved instead of reporting a delete that did not happen, and the user tools reject a user that was never saved instead of saving it (#3616201).
  • Tools that take a generic entity input accept only content entities (#3616168). entity_list uses bounded, deterministic pagination (#3616138).
  • Inputs and outputs use Tool API's list and output definition classes, and free-form map outputs that can be empty are optional. Advertised schemas change accordingly (#3616173, #3616164, #3616175).

Fixes

  • system_status reports warnings and errors again, and no longer fails on Drupal 10.5 to 11.1 (#3616181).
  • entity_load_by_property no longer fails when a match is denied view access (#3616199).
  • entity_metadata, entity_delete and entity_translation_get no longer fail on an unsaved entity (#3616201).
  • Validation failures in field_set_value, entity_create and entity_update are no longer double-escaped (#3616188).
  • entity_field_values reports requested field names that do not exist (#3591410).
  • field_storage_update no longer advises deleting content when a field storage has data (#3616194).
  • workspace_create and workspace_create_and_switch work without the Workspaces Extra module (#3616167), and tool_belt_workspace works on Drupal 10 (#3616196).
  • Constraint options are passed in the form Drupal 12 requires (#3616150).
  • The test suite runs on Drupal 10 again, and CI and static analysis were brought up to date (#3616195, #3616197, #3616202, #3616149).

Known issues

  • Entity IDs are integers in some inputs and outputs and strings in others (#3616179); entity_save does not return the saved entity's ID (#3616184).
  • Some failure messages include raw exception text (#3616186), and some access denials give no reason (#3616189).
  • field_storage_update refuses every change once a field has data, including changes core allows (#3616194).
  • workspace_tracked_content needs Drupal 11.3 or later (#3616198).

Contributors

abhisekmazumdar, amateescu, cadence96, jaydub, Marcus_Johansson, mglaman, michaellander, prabha1997, robloach, scottfalconer, vidit-anjaria, yautja_cetanu.

Created by: michaellander
Created on: 28 Sep 2026 at 06:39 UTC
Last updated: 28 Sep 2026 at 06:40 UTC
Bug fixes
New features

Other releases