Skip to content

GPT-5: AI_InvalidToolInputError: Invalid input for tool read: Type validation failed. #1695

Closed

Description

@adeperio

Getting this when trying to use GPT-5:

Read

Tool execution aborted

GPT-5: AI_InvalidToolInputError: Invalid input for tool read: Type validation failed.

Activity

  1. self-assigned this
    on Aug 11, 2025
  2. pegasora commented on Aug 12, 2025

    @pegasora

    👍 +1

    i am getting the same issues when trying to run gpt-oss:20b locally via ollama.

    conversation:

    create a file named test.txt in my current directory
    dawsonb (01:41 PM)


    We need to create a file named test.txt in current directory.
    Build gpt-oss:20b (01:41 PM)


    Write

    The arguments provided to the tool are invalid: Invalid input for tool write: Type
    validation failed: Value: {"content":"This is a test file.","path":"test.txt"}.
    Error message: [
    {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": [
    "filePath"
    ],
    "message": "Required"


    Plan

    []

    Sure thing—just let me know what you’d like me to work on next!
    Build gpt-oss:20b (01:41 PM)


    Not sure what the issue is, it seems to fail on all tool calls I have tried. Would love some guidance! :)

  3. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Collaborator

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions