File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
tests/playwright/tools/basic Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ def tool_result_contents(x: "ContentToolResult") -> Tagifiable:
291291 icon = None
292292 if tool and tool .annotations :
293293 tool_title = tool .annotations .get ("title" )
294- icon = tool .annotations .get ("extras " , {}).get ("icon" )
294+ icon = tool .annotations .get ("extra " , {}).get ("icon" )
295295 icon = icon or tool .annotations .get ("icon" )
296296
297297 # Icon strings and HTML display never get escaped
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ def list_files_impl():
4141annotations : ToolAnnotations = {}
4242if TOOL_OPTS ["with_title" ]:
4343 annotations ["title" ] = "List Files"
44+ annotations ["extra" ] = {
45+ "icon" : faicons .icon_svg ("folder" ),
46+ }
4447
4548# Define the tool function based on configuration
4649if TOOL_OPTS ["async" ]:
You can’t perform that action at this time.
0 commit comments