How to change the paint bucket tool's configuration in UXP?

Every setter structure is something like:

await batchPlay(
  [
     {
        "_obj": "set",
        "_target": [
           {"_ref": "bucketTool"}
        ],
        "to": toolOptions
     }
  ],{
     "synchronousExecution": false
  }
);

Where toolOptions is the options you want to change for the specific tool. You can check the options with Alchemist and adjust them as necessary