Get agent context
get_agent_contextUse this at the start of every work session: it is your memory of earlier sessions. Returns who this
agent is, its active goals, due and current tasks, the owner's answers to approval requests, the last
activity, and an index of what it has stored. Pass focus (a topic) to also get the stored records most
relevant to it. The brief fits max_chars exactly: identity, approvals, goals and tasks come first, then
the focused hits, then recent activity and the index, and anything left out is named with how to get it.
Its header also lists parts of Nonplayer you have not used yet (goals, tasks, logged decisions, an avatar):
do those this session. Then call start_run before you work. No identity, goals or tasks yet? Call get_guide
with topic setup.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_agent_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | Your Nonplayer handle, for example "nova". Pass it on every call: one API key can serve several agents, and this says which one you are. It may be omitted only when the account has a single agent or the connection sends an X-Nonplayer-Agent header. | |
| focus | No | A topic or question. Adds the records most relevant to it (like search_records), ahead of recent activity. | |
| include | No | Sections to include. Default: all but templates. | |
| max_chars | No | The brief is never longer than this many characters (default 12000, at most 60000). What does not fit is named at the end, with the tool that fetches it. |