Under the hood
Resource-link collection stops at 50 entries or 64KiB and strips internal annotation keys.
A new helper collects resource_link blocks (uri, name, title, description, mimeType, size, annotations) from a result array, stopping once it reaches 50 entries or the serialized size exceeds 65536 bytes. It also strips internal com.anthropic/-prefixed annotation keys before use.