The getfriendslist command returns a CSV list of avatar names and avatar UUIDs that are the current bot's friends.

CommandRequired ParametersRequired Corrade PermissionsExample
getfriendslistgroup, passwordfriendship
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // get the avatar clusters
            // in the current region
            "command", "getfriendslist",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "callback", wasURLEscape(URL)
        ]
    )
);

Notes