Get agent context

Resolve exact active core knowledge plus relevant cited library passages and create a versioned context receipt for this task.

knowledge_context_getKnowledgeRead only

Behavior

Read-only hint
True
Destructive hint
Not declared
Idempotent hint
Not declared
Open-world hint
Not declared

Parameters

NameTypeRequirementDescription
workspaceIdstringRequiredNo additional description.
taskstringRequiredNo additional description.
intentstringRequiredNo additional description.
tokenBudgetintegerOptionalNo additional description.

Input JSON Schema

Generated from the registered input schema
{
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "minLength": 1
    },
    "task": {
      "type": "string",
      "minLength": 1,
      "maxLength": 300
    },
    "intent": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    },
    "tokenBudget": {
      "default": 8000,
      "type": "integer",
      "minimum": 500,
      "maximum": 50000
    }
  },
  "required": [
    "workspaceId",
    "task",
    "intent"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Call shape

Use an MCP client rather than sending this JSON directly. The client handles protocol negotiation, sessions, and authentication.

Protocol request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "knowledge_context_get",
    "arguments": {}
  }
}