mirror of
https://github.com/openai/codex.git
synced 2026-05-02 02:17:22 +00:00
Add /context window breakdown
This commit is contained in:
@@ -13,7 +13,7 @@ Codex exposes MCP-compatible methods to manage threads, turns, accounts, config,
|
||||
At a glance:
|
||||
|
||||
- Primary v2 RPCs
|
||||
- `thread/start`, `thread/resume`, `thread/fork`, `thread/read`, `thread/list`
|
||||
- `thread/start`, `thread/resume`, `thread/fork`, `thread/read`, `thread/context/read`, `thread/list`
|
||||
- `turn/start`, `turn/steer`, `turn/interrupt`
|
||||
- `account/read`, `account/login/start`, `account/login/cancel`, `account/logout`, `account/rateLimits/read`
|
||||
- `config/read`, `config/value/write`, `config/batchWrite`
|
||||
@@ -52,6 +52,8 @@ Use the separate `codex mcp` subcommand to manage configured MCP server launcher
|
||||
|
||||
Use the v2 thread and turn APIs for all new integrations. `thread/start` creates a thread, `turn/start` submits user input, `turn/interrupt` stops an in-flight turn, and `thread/list` / `thread/read` expose persisted history.
|
||||
|
||||
Use `thread/context/read` for a live, approximate, sectioned breakdown of the loaded thread's current model-visible context window.
|
||||
|
||||
`getConversationSummary` remains as a compatibility helper for clients that still need a summary lookup by `conversationId` or `rolloutPath`.
|
||||
|
||||
For complete request and response shapes, see the app-server README and the protocol definitions in `app-server-protocol/src/protocol/v2.rs`.
|
||||
|
||||
Reference in New Issue
Block a user