pub async fn handle_context(
server: &ProtocolServer,
req: ContextRequest,
) -> Result<Response<ContextResponse>, Status>Expand description
Handle a CONTEXT RPC.
- Validates the session (and keeps it alive).
- Runs a full-text search for the given query.
- Depending on depth:
SIGNATURES– return symbol metadata only.FULL– also include source code.CALL_GRAPH– include source code + caller/callee edges.
- Estimates token usage and truncates if
max_tokensis set.
File reads now go through the session workspace overlay, so agents see their own in-progress modifications reflected in CONTEXT results.