Hi @mattlean,
First of all: Welcome to the community .
Currently, plugins don’t have access to guidelines or grids. You can find a feature request for that here: Get values from Layout grid / guides.
I hope this helps (although it’s probably not the answer you were hoping for),
Best,
Pablo