File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3234,8 +3234,11 @@ async function testTool(toolId) {
3234
3234
titleElement . textContent = "Test Tool: " + ( tool . name || "Unknown" ) ;
3235
3235
}
3236
3236
if ( descElement ) {
3237
- descElement . textContent =
3238
- tool . description || "No description available." ;
3237
+ if ( tool . description ) {
3238
+ descElement . innerHTML = tool . description . replace ( / \n / g, '<br/>' ) ;
3239
+ } else {
3240
+ descElement . textContent = "No description available." ;
3241
+ }
3239
3242
}
3240
3243
3241
3244
const container = safeGetElement ( "tool-test-form-fields" ) ;
Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ <h2 class="text-2xl font-bold dark:text-gray-200">Registered Tools</h2>
393
393
{{ tool.requestType }}
394
394
</ td >
395
395
< td class ="px-2 py-4 whitespace-normal break-words text-sm text-gray-500 dark:text-gray-300 ">
396
- {{ tool.description }}
396
+ {{ tool.description | replace('\n', ' < br /> ') | safe }}
397
397
</ td >
398
398
< td class ="px-2 py-4 whitespace-nowrap ">
399
399
{% if tool.annotations %}
You can’t perform that action at this time.
0 commit comments