Docs: guide x_search toward exact-post stats lookups

This commit is contained in:
huntharo
2026-03-28 11:01:19 -04:00
committed by Peter Steinberger
parent c8ed1638ea
commit 1c9684608a
4 changed files with 23 additions and 2 deletions

View File

@@ -216,6 +216,15 @@ AI-synthesized answers with citations. It accepts natural-language queries and
optional structured filters. OpenClaw only enables the built-in xAI `x_search`
tool on the request that serves this tool call.
<Note>
xAI documents `x_search` as supporting keyword search, semantic search, user
search, and thread fetch. For per-post engagement stats such as reposts,
replies, bookmarks, or views, prefer a targeted lookup for the exact post URL
or status ID. Broad keyword searches may find the right post but return less
complete per-post metadata. A good pattern is: locate the post first, then
run a second `x_search` query focused on that exact post.
</Note>
### x_search config
```json5
@@ -258,6 +267,13 @@ await x_search({
});
```
```javascript
// Per-post stats: use the exact status URL or status ID when possible
await x_search({
query: "https://x.com/huntharo/status/1905678901234567890",
});
```
## Examples
```javascript