Incidentally, welcome to the forum! To expand on my last, I donât think you need an agent for the task as attribute browser was created for just this sort of task. The different âviewsâ are just that, different visualisations of the same underlying data. Using AB view doesnât change the underlying data.
You can make an agent to find all data with tags. Assuming you are referring to data in the Tags system attribute, you can make an agent that finds notes with Tags data with this query:
$Tags!=""
You can also sort your agent on Tags via the Sort. But, Tags is a multi-value attribution, so on what are you assuming it will sort. I donât think itâs predictable but likely it will use a noteâs tags, listed in order they were added to the note. This might no be what you were inspected.
So, take the attached demo: tag-check.tbx (149.5 KB)
Note A has Tags âNemesisâ and âHubrisâ. Note B has no tags and Not C has âHubrisâ.
Note that âNote Aâ is listed twice as it has two tags. To lose that â[no value]â category, weâll add an agent with the query:
$Tags
This is short form of the same query I listed aboveâ i.e. only match those notes that has a value for the Tags attribute. In the demo Iâve called the query âMust have tagsâ. Note how now only two notes are listed. Note B is omitted as it has no tags: