Install

Works with Drupal: ^10.5 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 99.69 KB
MD5: c11223e7880257f6ce26317b94f76cb0
SHA-1: 511dc2e7c1ac5400c24ecc6594b7ab955463d300
SHA-256: a37dab86891e901222829d39d1dae5e25635d5b8c6a17f9ff6fdfd5fde9e755c
Download zip 191.63 KB
MD5: 5d852c7ff1ef5286f4d14a827d307597
SHA-1: d36f76a6b0c57e124e71dd1e5ee71520270386a5
SHA-256: 0fc541b973b3afcae523f678efba2a0652f2e75d55efec6f0a2fc36d3ac09312

Release notes

23 commits since 1.0.0-beta2.

Important upgrade notes

  • Minimum Drupal core is now 10.5 (^10.5 || ^11, previously ^10.3).
  • Two additive API methods on ToolInterface: setFailureResult() lets an invoker record a failure on a tool whose input stage failed before execution, and hasExecuted() distinguishes "a result exists" from "execute() actually ran". Existing plugins extending ToolBase inherit both; custom direct implementations of ToolInterface must add them.

Critical bug fixes

  • #3582939: Enabling the module no longer breaks REST/JSON:API serialization — the module's normalizers previously intercepted all field normalization and returned empty values for every field.
  • #3582956: Tool schemas are now valid JSON Schema draft 2020-12. Anthropic previously rejected every request whose tools had optional inputs.
  • #3576586: Context data is available after execution, and entity handle write-back now happens at execute time instead of render time — fixing lost mutations when multiple tool calls in one LLM response modified the same entity (e.g. two field_set_value calls where only the last one took effect).
  • #3582957: A tool call with an invalid argument no longer aborts the entire agent run with a BadMethodCallException — the LLM now receives the failure message and input schema and can self-correct.

Drupal 10 fixes (previously silent breakage)

  • Scalar tool schemas no longer degrade to type: string on Drupal 10 — the legacy typed-data normalizer declared a wildcard type that core's serializer never matched, so it was unselectable on the only cores it existed for. Integers, booleans, and formats now normalize correctly.
  • hook_ai_tools_property_alter() now fires on Drupal 10 — it was implemented only as an OOP hook (11.1+); a procedural bridge covers older cores.
  • CI now tests against the previous Drupal major, so 10.x support is verified on every release rather than assumed.

Bug fixes

  • #3582948: Readable output restored via setOutput() (serialized/replayed function calls) is honored instead of recomputed from an un-executed instance (the BadMethodCallException in this issue's title was resolved by the return-format rework in #3582933 and #3582957).
  • #3582954: A tool that skips an optional output no longer crashes when its results are read.
  • #3582942: tool:run no longer masks the failure message by reading outputs on a failed tool.
  • #3582938: Module dependencies are maintained correctly.
  • Fixed PHPUnit configuration issues that caused all tests to fail.

Improvements

  • #3582949: Invoker-aware input/output transformations, including recursive transformation of nested values.
  • #3582933: Tool return format is controllable via handle and events.
  • #3550815: Entity handle behavior extracted into its own service (ToolHandleStore, EntityHandleTransformer).
  • #3582937: Context definition overrides supported on the AI connector's ToolPluginBase.
  • Tool Explorer uses Drupal's Yaml::decode() instead of Symfony Yaml::parse() directly.
Created by: michaellander
Created on: 30 Jul 2026 at 23:17 UTC
Last updated: 31 Jul 2026 at 22:15 UTC
Bug fixes
New features

Other releases