How to use resources from the client
ResourceListChangedNotification
, it signals that the resource list has changed. The list_resources()
method always fetches fresh data from the server, ensuring you get up-to-date information.
Important: Always use await session.list_resources()
instead of the deprecated session.resources
property to ensure you get fresh data:
read_resource
method with their URI: