Available tools
Naming rules
Names support letters, numbers, hyphens, and underscores only. No slashes or spaces. Examples:findings, review-summary, security_notes, chunk-1
Collecting results before publishing
Agents often need to gather information across multiple files, tests, or analysis steps before producing a final output. Scratchpads act as a staging area: agents write findings as they go, then read the scratchpad to compose a polished comment, review, or ticket update.Multi-agent collaboration
In anagent.session, multiple agents share the same scratchpads. Each agent can append its findings independently, and the coordinator can read everything to produce a consolidated result.
Use append_scratchpad when multiple agents contribute: it prevents agents from overwriting each other’s work.
Passing context between workflow steps
Scratchpads persist across steps within a workflow run. An agent in one step can write a scratchpad that agents in later steps read, without relying on{{outputs}} templates.
This is useful when:
- The data is too large or structured for step output templates
- Multiple steps need to build up a shared document incrementally
- You want a later step to consume structured content directly