\r on the config form causes the property_restrictions to not be followed
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3556533. --> Reported by: [ultimike](https://www.drupal.org/user/51132) Related to !212 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>I have an agent that is using the "Get Current Content Entity Values" tool and I am trying to set the property restrictions for <code>entity_type</code> to "node" and "media". </p> <p><img src="https://www.drupal.org/files/issues/2025-11-06/Screenshot%202025-11-06%20at%202.49.37%E2%80%AFPM.png" alt="Screenshot showing property type settings."></p> <p>But, when I run the agent I get errors like:</p> <blockquote><p>**The technical limitation**: The `ai_agents_get_current_content_entity_values` tool is rejecting all entity_type values I've attempted, despite following the schema definition which indicates it should accept "node\r" as an enum value.</p></blockquote> <p>and </p> <blockquote><p>Error: The "node<br> " entity type does not exist.</p></blockquote> <p>(with the line feed as shown in the second example.)</p> <p>I'm pretty sure this is related to <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai_agents/issues/3536318" title="Status: Closed (fixed)">#3536318: \r\n on the config form causes the property_restrictions to not be followed</a></span></p> <p>-mike</p> > Related issue: [Issue #3536318](https://www.drupal.org/node/3536318)
issue