Fixed
Project:
Tool Belt
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2026 at 13:44 UTC
Updated:
3 Jul 2026 at 07:44 UTC
Jump to comment: Most recent
When working with content entities, it is often necessary to determine the bundle (e.g., content type for nodes, vocabulary for taxonomy terms) before performing further operations. Currently, there is no dedicated tool to retrieve just the bundle - users must load field values or inspect the entity manually (or in the prompt if using AI).
New tool plugin: EntityBundle
The tool supports two input modes:
entity object directly (e.g., from aentity_type_id and entity_id as a fallback when no loaded entity is availablebundle (string) — the bundle machine name of the entityMR and review
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ajitsCreated a MR. Please review.
Comment #4
michaellander commentedHi Ajits, would you see any value in maybe making this a little more broad and allow it to return more general metadata? Maybe align it to metadata available from other tools?
Is revision-able
Is translatable
Language
UUID
Comment #5
ajitsComment #6
ajits@michaellander - I have expanded the scope for the tool. This works in my scenario for getting the bundle; and might help with others as well.
Comment #8
ajits@michaellander - I went ahead and merged this. I will fix any review points in follow-ups.