NotesAgent (JavaScript™) Represents an agent. AccessTo access all the agents in a database, use getAgents in NotesDatabase. To access a specified agent, use getAgent in NotesDatabase.