Codex Performance Plan
codex_plan_perfAnalyze code performance to identify bottlenecks and create a prioritized optimization plan with expected impact.
Instructions
Ask Codex to analyze performance and create an improvement plan. Identifies bottlenecks, proposes ranked optimizations with expected impact.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>"
},
"name": "codex_plan_perf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | What to optimize: function, module, or pipeline path | |
| context | No | Additional context about usage patterns | |
| metrics | No | Performance metrics to focus on | |
| threadId | No | Continue a previous Codex conversation: pass the threadId returned by an earlier call. Omit to start a fresh thread. | |
| constraints | No | Constraints: must not increase binary size, etc. | |
| workingDirectory | No |