Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/user-guide/concepts/tools/tools_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ Every tool added to an agent also becomes a method accessible directly on the ag
result = agent.tool.file_read(path="/path/to/file.txt", mode="view")
```

When calling tools directly as methods, always use keyword arguments - positional arguments are *not* supported for direct method calls:

```python
# This will NOT work - positional arguments are not supported
result = agent.tool.file_read("/path/to/file.txt", "view") # ❌ Don't do this
```

If a tool name contains hyphens, you can invoke the tool using underscores instead:

```python
Expand Down