Skip to content

Tool Improvement: Refine write_file schema and description #17547

@mattKorwel

Description

@mattKorwel

Overview

Part of the tool augmentation effort to optimize tool definitions for Gemini 3.0.

Proposed Changes

Update the write_file tool definition and description based on user modification feedback from the planning session.

Audit and minimize/remove "how-to" sections in tool definitions to optimize the context budget.

Context from Planning

{
  "name": "write_file",
  "description": "Writes content to a specified file in the local filesystem.\n\n      The user has the ability to modify `content`. If modified, this will be stated in the response.",
  "parametersJsonSchema": {
    "properties": {
      "file_path": { "description": "The path to the file to write to.", "type": "string" },
      "content": { "description": "The content to write to the file.", "type": "string" }
    },
    "required": [ "file_path", "content" ],
    "type": "object"
  }
}

Parent: #15331

Metadata

Metadata

Assignees

Labels

area/agentIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Qualitystatus/need-triageIssues that need to be triaged by the triage automation.workstream-rollupLabel used to tag epics and features that are associated with one of the three primary workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions