Rather than providing a separate server method for querying build agents, you just have to provide a [BuildAgentSpec] when querying instead of the base [BuildItemSpec] if additional filtering is desired (beyond the simple path filter).
Assembly: Microsoft.TeamFoundation.Build.Server (in Microsoft.TeamFoundation.Build.Server.dll)
Thetype exposes the following members.
|Equals||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|