How to get all brush or tool presets?

I noticed, that preset selection does not differentiate if there are multiple presets with the same name. Same with brushes. Descriptors are:

{
   "_obj": "select",
   "_target": [
      {
         "_ref": "toolPreset",
         "_name": "Tool Preset Name"
      }
   ]
}

{
   "_obj": "select",
   "_target": [
      {
         "_ref": "brush",
         "_name": "Brush Name"
      }
   ]
}

Is there a way to specifically define which brush/preset to select if there are multiple by the same name?