File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
examples/video-resource-server Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,10 @@ ${Object.entries(VIDEO_LIBRARY)
137137 } ,
138138 async ( { videoId } ) : Promise < CallToolResult > => {
139139 const video = VIDEO_LIBRARY [ videoId ] ;
140- const data = { videoUri : `videos://${ videoId } ` , description : video . description } ;
140+ const data = {
141+ videoUri : `videos://${ videoId } ` ,
142+ description : video . description ,
143+ } ;
141144 return {
142145 content : [ { type : "text" , text : JSON . stringify ( data ) } ] ,
143146 structuredContent : data ,
Original file line number Diff line number Diff line change @@ -28,7 +28,10 @@ const videoInfoEl = document.getElementById("video-info")!;
2828function parseToolResult (
2929 result : CallToolResult ,
3030) : { videoUri : string ; description : string } | null {
31- return result . structuredContent as { videoUri : string ; description : string } | null ;
31+ return result . structuredContent as {
32+ videoUri : string ;
33+ description : string ;
34+ } | null ;
3235}
3336
3437// Show states
You can’t perform that action at this time.
0 commit comments