How can I fetch contacts related to accounts in Zoho Flow custom function?

How can I fetch contacts related to accounts in Zoho Flow custom function?

Hi,

I am trying to write a custom function in Zoho Flow to fetch a list of Individuals(Contacts) related to an Account so I can update their new account owner in the next step of the flow but I keep getting an error message on the following script. 

Please advise.

list getindividals()
{
getindividals = zoho.crm.getRelatedRecords("Contacts", "Accounts");
}