Fix LogMessage tool
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3554285. --> Reported by: [michaellander](https://www.drupal.org/user/636494) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>LogMessage is too vague to be called by AI and should be more constrained as to what is allowed. The <code>$context</code> value is defined intentionally loose in logger, but in regards to what we should allow to be called in Tool API, I don't see any reason why to not constrain it to what would be necessary for UI or AI purposes.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>We should log messages to a Tool API channel and set specific property definitions in the context map so that AI can successfully call them in a constrained way.</p> <p>See <code>\Drupal\dblog\Logger\DbLog::log</code> as a good reference as to what values are expected.</p>
issue