Every scan takes aDocumentation Index
Fetch the complete documentation index at: https://docs.benchspan.com/llms.txt
Use this file to discover all available pages before exploring further.
role parameter. The role tells Benchspan whether the content came from a user (the person interacting with your agent) or from a tool (a function call result, document fetch, API response, email body, etc.).
Supported roles
| Role | When to use |
|---|---|
user | Message directly from the end user of your agent |
tool | Content returned by a function call, MCP tool, document reader, browser, etc. |
Not scanned:
system (your own instructions) and assistant (the model’s own output). These are your trust boundary. The framework integrations skip them automatically.What to pass
The source field
An optional source lets you tag which tool the content came from. It shows up in the dashboard so you can see which tools produce the most injections.
name, the SDK auto-populates source for you.
The agent field
When constructing BenchGuard, pass agent="my-agent-name" to tag every scan with the agent identifier. This lets you filter usage per agent in the dashboard. Useful if you run multiple distinct agents on the same workspace.