You can specify attributes in three ways: 1) Using the `attributes` parameter, which takes a list of key-value pairs. 2) Using the `xml` parameter, which accepts an XML document as a string. 3) Using the `xmlPath` parameter, which specifies the path to a file containing the attributes in an XML format.