MCPcopy Create free account
hub / github.com/microsoft/TypeChat / print_status

Function print_status

python/examples/music/client.py:170–174  ·  view source on GitHub ↗
(context: ClientContext)

Source from the content-addressed store, hash-verified

168
169
170async def print_status(context: ClientContext):
171 state = await context.service.current_playback()
172 if not state:
173 print("Nothing playing according to Spotify")
174 await list_available_devices(context)
175
176
177async def list_available_devices(context: ClientContext):

Callers 1

handle_callFunction · 0.85

Calls 2

list_available_devicesFunction · 0.85
current_playbackMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…