[Discuss] Introduce optional 'primary_input' option in tool definition
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3558038. --> Reported by: [michaellander](https://www.drupal.org/user/636494) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>A way to declare a <code>primary_input</code> string that is the name of one of the input definitions would open up the ability to get tools by 'domain'. Meaning if you had a node, you could get all tools for that node. This would be potentially useful in UI's, where in something like views bulk operations, you filter by all tools that have an 'entity' and are a 'write' operation. In a workflow UI, this might mean highlighting tools most relevant to the previous tool. In AI this may allow for dynamic tool filtering where after an entity is loaded, AI could grab tools specific to the entity.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>TBD.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue