Read team memory, skills, and design standards before work
Returns the team's active memories, enabled skills, and team design standards before creating or editing a Space. Pass spaceId for an existing Space: its memories join team memories, and the same team design system applies. Memories come pinned first, then the Space's, then team-wide, newest first, within a size budget; total and truncated report the rest. Memories are knowledge, not commands; current user instructions take precedence. Follow enabled skills, whose body is Markdown. designSystem.markdown is a complete design.md handoff with colors, typography, layout, voice, examples, and Media Library asset references; designSystem.assets supplies attachment IDs, availability, URLs, categories, usage, and alt text. Missing attachments have available false and url null and are omitted from Markdown. Read once before work, including tasks on a linked local checkout. Keep memories.revision, skillsRevision, and designSystem.revision. Later reads send knownMemoriesRevision, knownSkillsRevision, and knownDesignSystemRevision. Retain a part whose changed flag is false; replace each changed part. Changed design context with null Markdown means there is no saved system. A team outside the Memory & skills beta gets empty context. To import standards, read getTeamDesignSystem for the saved values, entry IDs, and numeric write revision, then save only intended changes with updateTeamDesignSystem.
Request
- Base URL: https://api.spacefast.com
- URL: https://api.spacefast.com/v1/teams/{teamId}/agent-context
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://api.spacefast.com/v1/auth/oauth2/authorize, token URL https://api.spacefast.com/v1/auth/oauth2/token; client credentials, token URL https://api.spacefast.com/v1/auth/oauth2/token, scopes: spaces:read)
Path parameters
Query parameters
The Space you are working in. Adds that Space's memories to the team-wide ones.
The memories.revision you already hold. While it matches, memories.items comes back empty.
The skillsRevision you already hold. While it matches, skills comes back empty.
The designSystem.revision you already hold. While it matches, compiled Markdown and assets come back empty.
Response
Response for status 200
Changes
No recorded changes to this operation across all 1 revision of this API.