set_project_knowledge
Store structured project facts by key, updating existing entries to keep deploy URLs, stack conventions, and gotchas current.
Instructions
Write a structured fact to project knowledge. UPSERT by key — calling with same key updates the existing entry. Use for deploy URLs, stack conventions, gotchas. These facts are visible via get_project_knowledge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Slug key for UPSERT (e.g. 'deploy-url', 'stack-convention'). Same enforced pattern as remember: ^[a-z0-9][a-z0-9-]*[a-z0-9]$ — hyphens, NEVER colons; a colon-delimited key is REFUSED, not normalised. | |
| tags | No | Additional tags for filtering. | |
| value | Yes | The knowledge to store (markdown, max 4000 chars). | |
| category | No | Optional category: deploy, stack, conventions, gotchas, api, auth, etc. | |
| thread_id | No | Thread identifier. Auto-populated from the runner state file when omitted. | |
| project_id | Yes | Project ID to store knowledge for. | |
| source_url | No | Optional URL/path to the source of this knowledge. | |
| attach_context | No | When false, disables auto-injection of thread_id and source_task_id. | |
| source_task_id | No | UUID of the Mesh task that produced this fact. Auto-populated from the runner state file when omitted. |