Modify tool ai_agents_get_current_content_entity_values to accept UUIDs as well?
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3556061. -->
Reported by: [ultimike](https://www.drupal.org/user/51132)
>>>
<p>I recently wrote a tool to find file and media IDs based on a UUID, and it got me to thinking if we could just supplement the get_content_type_info tool with UUID.</p>
<p>I believe this would require:</p>
<ol>
<li>Making the <code>entity_id</code> not required</li>
<li>Adding a new UUID context variable</li>
<li>Injecting <code>entity.repository</code></li>
<li>Some other additional changes to call <code>$this->entityRepository->loadEntityByUuid()</code> when a UUID is provided.</li>
</ol>
<p>I don't mind creating an issue fork and implementing this, but before I do, I'd love some feedback and assurance that unrequiring the <code>entity_id</code> context variable won't break anything. </p>
<p>I did notice that there's an existing test, so I'd be happy to expand test coverage for this new use case.</p>
<p>Thoughts?</p>
<p>thanks,<br>
-mike</p>
issue