docs/tools/planning.md
Planning tools let Gemini CLI switch into a safe, read-only "Plan Mode" for researching and planning complex changes, and to signal the finalization of a plan to the user.
enter_plan_mode (EnterPlanMode)enter_plan_mode switches the CLI to Plan Mode. This tool is typically called
by the agent when you ask it to "start a plan" using natural language. In this
mode, the agent is restricted to read-only tools to allow for safe exploration
and planning.
[!NOTE] This tool is not available when the CLI is in YOLO mode.
enter_plan_modeenter-plan-mode.tsreason (string, optional): A short reason explaining why the agent is
entering plan mode (for example, "Starting a complex feature
implementation").PLAN.llmContent): A message indicating the switch, for example,
Switching to Plan mode.exit_plan_mode (ExitPlanMode)exit_plan_mode signals that the planning phase is complete. It presents the
finalized plan to the user and requests formal approval to start the
implementation. The agent MUST reach an informal agreement with the user in the
chat regarding the proposed strategy BEFORE calling this tool.
exit_plan_modeexit-plan-mode.tsplan_path (string, required): The path to the finalized Markdown plan
file. This file MUST be located within the project's temporary plans
directory (for example, ~/.gemini/tmp/<project>/plans/).plan_path is within the allowed directory and that the
file exists and has content.DEFAULT or AUTO_EDIT).llmContent):