Add/Remove Gmail Labels in the same node

It would help if there was a node for:

Adding and removing message labels on Gmail message in one operation. This is in line with the API where this is done through users.messages.modify.

My use case:

I have a flow where i use Pub/Sub to trigger a webhook on a new message, instead of the polling trigger node, and then filter all added emails by first adding a label then in the next node removing the system labels INBOX etc.

My Pub/sub is configured to only trigger when the email that was changed has the INBOX label but the two-stage adding and removal of labels causes it to trigger again after the label has been added but before INBOX has been removed. This leads to unnecessary workflow runs.

I am aware and capable of using the http node but this would make the flow a lot more tedious to maintain.

Any resources to support this?

Are you willing to work on this?

I haven’t worked on nodes before and it being a core node and a relatively simple change I believe it better and more efficient for someone else to do it.