Can I look up the anchor text of a link in action code?

I use a bunch of text links, and I’m wondering if it’s possible to look up the actual text of a link in action code. So for this document:

I’d like to somehow get “a second note” out of this. Not sure if that’s possible…

links(/note 1).outbound..WHAT_GOES_HERE?

Retrieve the anchor text of a text link via action code? I don’t believe that is possible. The last argument of links() is an attribute reference.

For now I think this would need to be a feature request, if you want to specify it and mail it in