Can an agent limited to some workspaces use the library_ tools?
Yes. A credential always reaches the organization folder of its organization with its file scopes, whatever workspaces it is limited to, because the organization folder is the shared root every member can open. Its member's role still decides what it may change there.