mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-08 05:18:49 +03:00
Update identity.md, TOOLS.md, skills README, and skill-creator SKILL.md to remove mentions of the removed glob tool. Grep's glob parameter remains documented where relevant.
29 lines
1.2 KiB
Markdown
29 lines
1.2 KiB
Markdown
# Tool Usage Notes
|
|
|
|
Tool signatures are provided automatically via function calling.
|
|
This file documents non-obvious constraints and usage patterns.
|
|
|
|
## exec — Safety Limits
|
|
|
|
- Commands have a configurable timeout (default 60s)
|
|
- Dangerous commands are blocked (rm -rf, format, dd, shutdown, etc.)
|
|
- Output is truncated at 10,000 characters
|
|
- `restrictToWorkspace` config can limit file access to the workspace
|
|
|
|
## grep — Content Search
|
|
|
|
- Use `grep` to search file contents inside the workspace
|
|
- Default behavior returns only matching file paths (`output_mode="files_with_matches"`)
|
|
- Supports optional `glob` filtering (e.g. `glob="*.py"`) plus `context_before` / `context_after`
|
|
- Supports `type="py"`, `type="ts"`, `type="md"` and similar shorthand filters
|
|
- Use `fixed_strings=true` for literal keywords containing regex characters
|
|
- Use `output_mode="files_with_matches"` to get only matching file paths
|
|
- Use `output_mode="count"` to size a search before reading full matches
|
|
- Use `head_limit` and `offset` to page across results
|
|
- Prefer this over `exec` for code and history searches
|
|
- Binary or oversized files may be skipped to keep results readable
|
|
|
|
## cron — Scheduled Reminders
|
|
|
|
- Please refer to cron skill for usage.
|