{"type":"session","version":3,"id":"916ef8cf-10db-496f-b734-364fbb4799f7","timestamp":"2026-06-05T07:59:40.418Z","cwd":"/home/yangxuan/.openclaw/workspace/travel"} {"type":"model_change","id":"9321e927","parentId":null,"timestamp":"2026-06-05T07:59:40.429Z","provider":"deepseek","modelId":"deepseek-v4-flash"} {"type":"thinking_level_change","id":"1029cef7","parentId":"9321e927","timestamp":"2026-06-05T07:59:40.429Z","thinkingLevel":"off"} {"type":"custom","customType":"model-snapshot","data":{"timestamp":1780646380458,"provider":"deepseek","modelApi":"openai-completions","modelId":"deepseek-v4-flash"},"id":"4d4ea56d","parentId":"1029cef7","timestamp":"2026-06-05T07:59:40.458Z"} {"type":"message","id":"f5f6e133","parentId":"4d4ea56d","timestamp":"2026-06-05T07:59:40.482Z","message":{"role":"user","content":"16:58提醒我天安门城楼预约","timestamp":1780646380292}} {"type":"message","id":"1b47a659","parentId":"f5f6e133","timestamp":"2026-06-05T07:59:41.749Z","message":{"role":"assistant","content":[{"type":"toolCall","id":"call_00_bu6gtjVeCIiV4HOpXX9E7165","name":"session_status","arguments":{},"partialArgs":"{}"}],"api":"openai-completions","provider":"deepseek","model":"deepseek-v4-flash","usage":{"input":14744,"output":27,"cacheRead":0,"cacheWrite":0,"totalTokens":14771,"cost":{"input":0.014744,"output":0.000054,"cacheRead":0,"cacheWrite":0,"total":0.014798}},"stopReason":"toolUse","timestamp":1780646380488,"responseId":"75ffc19e-141d-42ef-87a1-e1d80a5af8e7"}} {"type":"message","id":"ed5603d4","parentId":"1b47a659","timestamp":"2026-06-05T07:59:42.018Z","message":{"role":"toolResult","toolCallId":"call_00_bu6gtjVeCIiV4HOpXX9E7165","toolName":"session_status","content":[{"type":"text","text":"🦞 OpenClaw 2026.5.28 (e932160)\n⏱️ Uptime: gateway 1d · system 1d\n🧠 Model: deepseek/deepseek-v4-flash · 🔑 api-key (models.json)\n🧮 Tokens: 15k in / 27 out · 💵 Cost: $0.01\n🗄️ Cache: 37% hit · 8.6k cached, 0 new\n📚 Context: 15k/131k (11%) · 🧹 Compactions: 0\n🧵 Session: agent:travel:openclaw-weixin:direct:o9cq80w6znnpgitw-ggackwd69ba@im.wechat • updated just now\n⚙️ Execution: direct · Runtime: OpenClaw Default · Think: off · Fast: off · elevated\n🪢 Queue: steer (depth 0)"}],"details":{"ok":true,"sessionKey":"agent:travel:openclaw-weixin:direct:o9cq80w6znnpgitw-ggackwd69ba@im.wechat","changedModel":false,"statusText":"🦞 OpenClaw 2026.5.28 (e932160)\n⏱️ Uptime: gateway 1d · system 1d\n🧠 Model: deepseek/deepseek-v4-flash · 🔑 api-key (models.json)\n🧮 Tokens: 15k in / 27 out · 💵 Cost: $0.01\n🗄️ Cache: 37% hit · 8.6k cached, 0 new\n📚 Context: 15k/131k (11%) · 🧹 Compactions: 0\n🧵 Session: agent:travel:openclaw-weixin:direct:o9cq80w6znnpgitw-ggackwd69ba@im.wechat • updated just now\n⚙️ Execution: direct · Runtime: OpenClaw Default · Think: off · Fast: off · elevated\n🪢 Queue: steer (depth 0)"},"isError":false,"timestamp":1780646382016}} {"type":"message","id":"ace3fb2d","parentId":"ed5603d4","timestamp":"2026-06-05T07:59:44.471Z","message":{"role":"assistant","content":[{"type":"text","text":"现在是北京时间 2026年6月5日 15:59,距离16:58还有约1小时。"},{"type":"toolCall","id":"call_00_Iz5pvBlbq2Fe5S0G7wzw0711","name":"cron","arguments":{"action":"add","job":{"name":"天安门城楼预约提醒","schedule":{"kind":"at","at":"2026-06-05T08:58:00Z"},"sessionTarget":"current","payload":{"kind":"systemEvent","text":"⏰ 提醒:现在是16:58了,可以去天安门城楼预约了!预约方式:通过「天安门城楼参观预约」小程序或官网预约,需提前1-7天,记得带身份证。"},"deleteAfterRun":true}},"partialArgs":"{\"action\": \"add\", \"job\": {\"name\": \"天安门城楼预约提醒\", \"schedule\": {\"kind\": \"at\", \"at\": \"2026-06-05T08:58:00Z\"}, \"sessionTarget\": \"current\", \"payload\": {\"kind\": \"systemEvent\", \"text\": \"⏰ 提醒:现在是16:58了,可以去天安门城楼预约了!预约方式:通过「天安门城楼参观预约」小程序或官网预约,需提前1-7天,记得带身份证。\"}, \"deleteAfterRun\": true}}"}],"api":"openai-completions","provider":"deepseek","model":"deepseek-v4-flash","usage":{"input":265,"output":196,"cacheRead":14720,"cacheWrite":0,"totalTokens":15181,"cost":{"input":0.000265,"output":0.000392,"cacheRead":0,"cacheWrite":0,"total":0.000657}},"stopReason":"toolUse","timestamp":1780646382020,"responseId":"7a4633ec-e30e-4855-a592-6f1d9fb35f8f"}} {"type":"message","id":"f0bd275f","parentId":"ace3fb2d","timestamp":"2026-06-05T07:59:44.523Z","message":{"role":"toolResult","toolCallId":"call_00_Iz5pvBlbq2Fe5S0G7wzw0711","toolName":"cron","content":[{"type":"text","text":"{\n \"status\": \"error\",\n \"tool\": \"cron\",\n \"error\": \"Error: isolated/current/session cron jobs require payload.kind=\\\"agentTurn\\\"\"\n}"}],"details":{"status":"error","tool":"cron","error":"Error: isolated/current/session cron jobs require payload.kind=\"agentTurn\""},"isError":true,"timestamp":1780646384523}} {"type":"message","id":"f85ec645","parentId":"f0bd275f","timestamp":"2026-06-05T07:59:46.963Z","message":{"role":"assistant","content":[{"type":"toolCall","id":"call_00_GaMjViDCdHfX5gLetbn63350","name":"cron","arguments":{"action":"add","job":{"name":"天安门城楼预约提醒","schedule":{"kind":"at","at":"2026-06-05T08:58:00Z"},"sessionTarget":"current","payload":{"kind":"agentTurn","message":"⏰ 现在是16:58,提醒杨轩去预约天安门城楼参观。预约方式:微信搜索「天安门城楼参观预约」小程序或访问官方预约平台,需提前1-7天预约,参观时需携带身份证。请你通过当前会话告知他。"},"deleteAfterRun":true}},"partialArgs":"{\"action\": \"add\", \"job\": {\"name\":\"天安门城楼预约提醒\",\"schedule\":{\"kind\":\"at\",\"at\":\"2026-06-05T08:58:00Z\"},\"sessionTarget\":\"current\",\"payload\":{\"kind\":\"agentTurn\",\"message\":\"⏰ 现在是16:58,提醒杨轩去预约天安门城楼参观。预约方式:微信搜索「天安门城楼参观预约」小程序或访问官方预约平台,需提前1-7天预约,参观时需携带身份证。请你通过当前会话告知他。\"},\"deleteAfterRun\":true}}"}],"api":"openai-completions","provider":"deepseek","model":"deepseek-v4-flash","usage":{"input":244,"output":174,"cacheRead":14976,"cacheWrite":0,"totalTokens":15394,"cost":{"input":0.000244,"output":0.000348,"cacheRead":0,"cacheWrite":0,"total":0.000592}},"stopReason":"toolUse","timestamp":1780646384525,"responseId":"cbac2b80-d4bc-4760-8b1c-093b4539cfa6"}} {"type":"message","id":"8af5c04e","parentId":"f85ec645","timestamp":"2026-06-05T07:59:47.017Z","message":{"role":"toolResult","toolCallId":"call_00_GaMjViDCdHfX5gLetbn63350","toolName":"cron","content":[{"type":"text","text":"{\n \"id\": \"80b2f7dc-f466-4479-9132-49b5207a7b4f\",\n \"agentId\": \"travel\",\n \"sessionKey\": \"agent:travel:openclaw-weixin:direct:o9cq80w6znnpgitw-ggackwd69ba@im.wechat\",\n \"name\": \"天安门城楼预约提醒\",\n \"enabled\": true,\n \"deleteAfterRun\": true,\n \"createdAtMs\": 1780646387004,\n \"updatedAtMs\": 1780646387004,\n \"schedule\": {\n \"kind\": \"at\",\n \"at\": \"2026-06-05T08:58:00.000Z\"\n },\n \"sessionTarget\": \"session:agent:travel:openclaw-weixin:direct:o9cq80w6znnpgitw-ggackwd69ba@im.wechat\",\n \"wakeMode\": \"now\",\n \"payload\": {\n \"kind\": \"agentTurn\",\n \"message\": \"⏰ 现在是16:58,提醒杨轩去预约天安门城楼参观。预约方式:微信搜索「天安门城楼参观预约」小程序或访问官方预约平台,需提前1-7天预约,参观时需携带身份证。请你通过当前会话告知他。\"\n },\n \"delivery\": {\n \"mode\": \"announce\",\n \"to\": \"o9cq80w6ZnnPGItW-GGACkwd69bA@im.wechat\",\n \"channel\": \"openclaw-weixin\",\n \"accountId\": \"4a0926e2cb5f-im-bot\"\n },\n \"state\": {\n \"nextRunAtMs\": 1780649880000\n }\n}"}],"details":{"id":"80b2f7dc-f466-4479-9132-49b5207a7b4f","agentId":"travel","sessionKey":"agent:travel:openclaw-weixin:direct:o9cq80w6znnpgitw-ggackwd69ba@im.wechat","name":"天安门城楼预约提醒","enabled":true,"deleteAfterRun":true,"createdAtMs":1780646387004,"updatedAtMs":1780646387004,"schedule":{"kind":"at","at":"2026-06-05T08:58:00.000Z"},"sessionTarget":"session:agent:travel:openclaw-weixin:direct:o9cq80w6znnpgitw-ggackwd69ba@im.wechat","wakeMode":"now","payload":{"kind":"agentTurn","message":"⏰ 现在是16:58,提醒杨轩去预约天安门城楼参观。预约方式:微信搜索「天安门城楼参观预约」小程序或访问官方预约平台,需提前1-7天预约,参观时需携带身份证。请你通过当前会话告知他。"},"delivery":{"mode":"announce","to":"o9cq80w6ZnnPGItW-GGACkwd69bA@im.wechat","channel":"openclaw-weixin","accountId":"4a0926e2cb5f-im-bot"},"state":{"nextRunAtMs":1780649880000}},"isError":false,"timestamp":1780646387016}} {"type":"message","id":"c8271254","parentId":"8af5c04e","timestamp":"2026-06-05T07:59:48.226Z","message":{"role":"assistant","content":[{"type":"text","text":"好的,已设置提醒 ✅ 今天16:58会准时提醒你预约天安门城楼参观。\n\n届时我会告诉你如何通过微信小程序预约,记得带好身份证 🏛️"}],"api":"openai-completions","provider":"deepseek","model":"deepseek-v4-flash","usage":{"input":446,"output":39,"cacheRead":15360,"cacheWrite":0,"totalTokens":15845,"cost":{"input":0.000446,"output":0.000078,"cacheRead":0,"cacheWrite":0,"total":0.0005239999999999999}},"stopReason":"stop","timestamp":1780646387018,"responseId":"b0de82b7-7e8a-4689-bca2-0ebec8387ca6"}} {"type":"message","id":"45284481","parentId":"c8271254","timestamp":"2026-06-05T08:58:01.082Z","message":{"role":"user","content":[{"type":"text","text":"[cron:80b2f7dc-f466-4479-9132-49b5207a7b4f 天安门城楼预约提醒] ⏰ 现在是16:58,提醒杨轩去预约天安门城楼参观。预约方式:微信搜索「天安门城楼参观预约」小程序或访问官方预约平台,需提前1-7天预约,参观时需携带身份证。请你通过当前会话告知他。\nCurrent time: Friday, June 5th, 2026 - 4:58 PM (Asia/Shanghai)\nReference UTC: 2026-06-05 08:58 UTC\n\nUse the message tool if you need to notify the user directly for the current chat. If you do not send directly, your final plain-text reply will be delivered automatically."}],"timestamp":1780649881081}} {"type":"message","id":"d92db5a5","parentId":"45284481","timestamp":"2026-06-05T08:58:03.900Z","message":{"role":"assistant","content":[{"type":"text","text":"⏰ **16:58 到点啦!该预约天安门城楼了!**\n\n预约方式:\n\n1️⃣ **微信小程序**:搜索「天安门城楼参观预约」\n2️⃣ **官网预约**:访问官方预约平台\n3️⃣ **预约时间**:需提前 **1-7天**,建议尽早约\n4️⃣ **参观须知**:记得带好 **身份证原件**\n\n📌 天安门城楼目前参观需按预约时段入场,过时可能无法进入,建议选上午时段避开人流高峰。\n\n需要我帮你查一下近期的可预约日期和时间段吗?"}],"api":"openai-completions","provider":"deepseek","model":"deepseek-v4-flash","usage":{"input":12292,"output":129,"cacheRead":3456,"cacheWrite":0,"totalTokens":15877,"cost":{"input":0.012291999999999999,"output":0.000258,"cacheRead":0,"cacheWrite":0,"total":0.012549999999999999}},"stopReason":"stop","timestamp":1780649881086,"responseId":"364c7875-cc1e-4cf2-b8c6-75741ecdf871"}} {"type":"message","id":"b15475c4","parentId":"d92db5a5","timestamp":"2026-06-05T09:04:58.092Z","message":{"role":"user","content":"明天正式抢票预约","timestamp":1780650298015}} {"type":"message","id":"65acecf1","parentId":"b15475c4","timestamp":"2026-06-05T09:05:02.992Z","message":{"role":"assistant","content":[{"type":"text","text":"好的,明天正式抢票!请问几个关键信息帮您准备:\n\n1. **计划哪一天去参观?**(明天约的是未来哪天的票?)\n2. **几个人去?**\n3. **有偏好的时段吗?**(上午/下午)\n\n天安门城楼通常可约 **未来1-7天** 的票,放票时间一般是 **每天**(具体时间可能微调),建议明早关注小程序。\n\n需要我明天再提醒您一次具体几点去抢吗?"}],"api":"openai-completions","provider":"deepseek","model":"deepseek-v4-flash","usage":{"input":7327,"output":109,"cacheRead":8832,"cacheWrite":0,"totalTokens":16268,"cost":{"input":0.007326999999999999,"output":0.00021799999999999999,"cacheRead":0,"cacheWrite":0,"total":0.007545}},"stopReason":"stop","timestamp":1780650298094,"responseId":"c9513eb8-727e-4f69-8072-2ada6867bef7"}} {"type":"message","id":"a873dc85","parentId":"65acecf1","timestamp":"2026-06-05T09:05:34.321Z","message":{"role":"user","content":"13号","timestamp":1780650334268}} {"type":"message","id":"377cc30e","parentId":"a873dc85","timestamp":"2026-06-05T09:05:39.048Z","message":{"role":"assistant","content":[{"type":"text","text":"好的,目标明确:\n\n**🎯 天安门城楼预约计划**\n- **参观日期**:6月13日(周六)\n- **可预约时间**:最早6月6日(明天)起可约\n- **抢票方式**:微信搜索「天安门城楼参观预约」小程序\n\n明天几点提醒您去抢?通常这类热门景点建议 **早上就约**,您想设个具体时间提醒吗?比如 **明早8点/9点**?"}],"api":"openai-completions","provider":"deepseek","model":"deepseek-v4-flash","usage":{"input":1679,"output":105,"cacheRead":14592,"cacheWrite":0,"totalTokens":16376,"cost":{"input":0.001679,"output":0.00020999999999999998,"cacheRead":0,"cacheWrite":0,"total":0.0018889999999999998}},"stopReason":"stop","timestamp":1780650334323,"responseId":"7c99c951-e23c-4e68-a1a2-1636c8209f8a"}} {"type":"message","id":"c35f336a","parentId":"377cc30e","timestamp":"2026-06-05T09:06:01.984Z","message":{"role":"user","content":"17点抢,16:58提醒","timestamp":1780650361935}} {"type":"message","id":"c17096e1","parentId":"c35f336a","timestamp":"2026-06-05T09:06:05.414Z","message":{"role":"assistant","content":[{"type":"text","text":"好的,明天(6月6日)16:58提醒您抢6月13日天安门城楼的票。"},{"type":"toolCall","id":"call_00_3bqa65mXj3D9kUKMfgTj4668","name":"cron","arguments":{"action":"add","job":{"name":"天安门城楼抢票提醒","schedule":{"kind":"at","at":"2026-06-06T08:58:00Z"},"sessionTarget":"current","payload":{"kind":"agentTurn","message":"⏰ 现在是16:58,提醒杨轩抢天安门城楼6月13日的参观门票!请通过微信搜索「天安门城楼参观预约」小程序,17:00正式开抢,记得提前准备好身份证信息。请你通过当前会话告知他。"},"deleteAfterRun":true,"delivery":{"mode":"announce","channel":"openclaw-weixin","to":"o9cq80w6ZnnPGItW-GGACkwd69bA@im.wechat","accountId":"4a0926e2cb5f-im-bot"}}},"partialArgs":"{\"action\": \"add\", \"job\": {\"name\":\"天安门城楼抢票提醒\",\"schedule\":{\"kind\":\"at\",\"at\":\"2026-06-06T08:58:00Z\"},\"sessionTarget\":\"current\",\"payload\":{\"kind\":\"agentTurn\",\"message\":\"⏰ 现在是16:58,提醒杨轩抢天安门城楼6月13日的参观门票!请通过微信搜索「天安门城楼参观预约」小程序,17:00正式开抢,记得提前准备好身份证信息。请你通过当前会话告知他。\"},\"deleteAfterRun\":true,\"delivery\":{\"mode\":\"announce\",\"channel\":\"openclaw-weixin\",\"to\":\"o9cq80w6ZnnPGItW-GGACkwd69bA@im.wechat\",\"accountId\":\"4a0926e2cb5f-im-bot\"}}}"}],"api":"openai-completions","provider":"deepseek","model":"deepseek-v4-flash","usage":{"input":389,"output":257,"cacheRead":16000,"cacheWrite":0,"totalTokens":16646,"cost":{"input":0.00038899999999999997,"output":0.000514,"cacheRead":0,"cacheWrite":0,"total":0.0009029999999999999}},"stopReason":"toolUse","timestamp":1780650361987,"responseId":"d5148f44-6b17-4ac2-82e8-51f3c7a36f84"}} {"type":"message","id":"72137ff6","parentId":"c17096e1","timestamp":"2026-06-05T09:06:05.491Z","message":{"role":"toolResult","toolCallId":"call_00_3bqa65mXj3D9kUKMfgTj4668","toolName":"cron","content":[{"type":"text","text":"{\n \"id\": \"cf24cda0-8033-4208-bbd7-299fd03f108b\",\n \"agentId\": \"travel\",\n \"sessionKey\": \"agent:travel:openclaw-weixin:direct:o9cq80w6znnpgitw-ggackwd69ba@im.wechat\",\n \"name\": \"天安门城楼抢票提醒\",\n \"enabled\": true,\n \"deleteAfterRun\": true,\n \"createdAtMs\": 1780650365469,\n \"updatedAtMs\": 1780650365469,\n \"schedule\": {\n \"kind\": \"at\",\n \"at\": \"2026-06-06T08:58:00.000Z\"\n },\n \"sessionTarget\": \"session:agent:travel:openclaw-weixin:direct:o9cq80w6znnpgitw-ggackwd69ba@im.wechat\",\n \"wakeMode\": \"now\",\n \"payload\": {\n \"kind\": \"agentTurn\",\n \"message\": \"⏰ 现在是16:58,提醒杨轩抢天安门城楼6月13日的参观门票!请通过微信搜索「天安门城楼参观预约」小程序,17:00正式开抢,记得提前准备好身份证信息。请你通过当前会话告知他。\"\n },\n \"delivery\": {\n \"mode\": \"announce\",\n \"channel\": \"openclaw-weixin\",\n \"to\": \"o9cq80w6ZnnPGItW-GGACkwd69bA@im.wechat\",\n \"accountId\": \"4a0926e2cb5f-im-bot\"\n },\n \"state\": {\n \"nextRunAtMs\": 1780736280000\n }\n}"}],"details":{"id":"cf24cda0-8033-4208-bbd7-299fd03f108b","agentId":"travel","sessionKey":"agent:travel:openclaw-weixin:direct:o9cq80w6znnpgitw-ggackwd69ba@im.wechat","name":"天安门城楼抢票提醒","enabled":true,"deleteAfterRun":true,"createdAtMs":1780650365469,"updatedAtMs":1780650365469,"schedule":{"kind":"at","at":"2026-06-06T08:58:00.000Z"},"sessionTarget":"session:agent:travel:openclaw-weixin:direct:o9cq80w6znnpgitw-ggackwd69ba@im.wechat","wakeMode":"now","payload":{"kind":"agentTurn","message":"⏰ 现在是16:58,提醒杨轩抢天安门城楼6月13日的参观门票!请通过微信搜索「天安门城楼参观预约」小程序,17:00正式开抢,记得提前准备好身份证信息。请你通过当前会话告知他。"},"delivery":{"mode":"announce","channel":"openclaw-weixin","to":"o9cq80w6ZnnPGItW-GGACkwd69bA@im.wechat","accountId":"4a0926e2cb5f-im-bot"},"state":{"nextRunAtMs":1780736280000}},"isError":false,"timestamp":1780650365491}} {"type":"message","id":"8e345565","parentId":"72137ff6","timestamp":"2026-06-05T09:06:07.561Z","message":{"role":"assistant","content":[{"type":"text","text":"已设置明天16:58提醒 ✅\n\n**📋 明日抢票备忘**\n- **⏰** 16:58 → 提醒您准备\n- **🎫** 17:00 → 正式开抢(微信小程序「天安门城楼参观预约」)\n- **📅** 目标参观日:6月13日\n- **🆔** 提前准备好身份证信息\n\n祝明天顺利抢到票!🎯"}],"api":"openai-completions","provider":"deepseek","model":"deepseek-v4-flash","usage":{"input":668,"output":96,"cacheRead":16384,"cacheWrite":0,"totalTokens":17148,"cost":{"input":0.000668,"output":0.000192,"cacheRead":0,"cacheWrite":0,"total":0.00086}},"stopReason":"stop","timestamp":1780650365493,"responseId":"8a0c9e5e-f19e-4f1f-a97c-19550ac50832"}} {"type":"message","id":"65f63f20","parentId":"8e345565","timestamp":"2026-06-05T10:35:39.779Z","message":{"role":"user","content":"https://clawhub.ai/jaaneek/x-search 工具有什么用?","timestamp":1780655739491}} {"type":"message","id":"87300a4f","parentId":"65f63f20","timestamp":"2026-06-05T10:35:41.249Z","message":{"role":"assistant","content":[{"type":"text","text":"这是一个外部链接,我先查一下这个工具的信息。"},{"type":"toolCall","id":"call_00_34yYwM2pyLugco9SWuyk5193","name":"exec","arguments":{"command":"curl -sL \"https://clawhub.ai/jaaneek/x-search\" | head -200","timeout":15},"partialArgs":"{\"command\": \"curl -sL \\\"https://clawhub.ai/jaaneek/x-search\\\" | head -200\", \"timeout\": 15}"}],"api":"openai-completions","provider":"deepseek","model":"deepseek-v4-flash","usage":{"input":1043,"output":91,"cacheRead":16128,"cacheWrite":0,"totalTokens":17262,"cost":{"input":0.0010429999999999999,"output":0.00018199999999999998,"cacheRead":0,"cacheWrite":0,"total":0.001225}},"stopReason":"toolUse","timestamp":1780655739787,"responseId":"728bc200-7be3-442b-9573-c930af59730e"}} {"type":"message","id":"ff7951a8","parentId":"87300a4f","timestamp":"2026-06-05T10:35:43.285Z","message":{"role":"toolResult","toolCallId":"call_00_34yYwM2pyLugco9SWuyk5193","toolName":"exec","content":[{"type":"text","text":"X Search — ClawHub

X Search

Official
Data & APIs

Search X (Twitter) posts using the xAI API. Use when the user wants to find tweets, search X/Twitter, look up what people are saying on X, or find social media posts about a topic.

Install

openclaw skills install x-search

X Search

\n

Search X (Twitter) posts using the xAI Grok API with real-time access to X content.

\n

Setup

\n
    \n
  1. Get your API key: https://console.x.ai
  2. \n
  3. Set environment variable:\n
    export XAI_API_KEY="…uot;\n
    \n
  4. \n
  5. Or set skills."x-search".apiKey / skills."x-search".env.XAI_API_KEY in ~/.openclaw/openclaw.json
  6. \n
\n

Usage

\n
python3 {baseDir}/scripts/search.py "what is trending in AI right now"\n
\n

Useful flags:

\n
# Filter by handles (max 10)\npython3 {baseDir}/scripts/search.py --handles jaaneek,OpenClaw "latest posts"\n\n# Exclude handles (max 10)\npython3 {baseDir}/scripts/search.py --exclude spambot,crypto_shill "trending AI"\n\n# Date range (YYYY-MM-DD)\npython3 {baseDir}/scripts/search.py --from 2026-03-01 --to 2026-03-20 "xAI grok updates"\n\n# Enable image/video understanding in posts\npython3 {baseDir}/scripts/search.py --images --video "product demos"\n
\n

Notes

\n
    \n
  • Uses the xAI Responses API with x_search tool (Grok performs the search and summarizes results)
  • \n
  • Cannot use --handles and --exclude at the same time
  • \n
  • Results include citations with links to original X posts
  • \n
  • Present results in a readable format with post content, authors, and citations
  • \n

Related skills

More in Data & APIs
更多产品

关于百度 About Baidu

©2017 Baidu 使用百度前必读  意见反馈 京ICP证030173号 

"}],"details":{"status":"completed","exitCode":0,"durationMs":4671,"aggregated":"---\n\r\n 百度一下,你就知道

关于百度 About Baidu

©2017 Baidu 使用百度前必读  意见反馈 京ICP证030173号 

","cwd":"/home/yangxuan/.openclaw/workspace/travel"},"isError":false,"timestamp":1780655826036}} {"type":"message","id":"d56a62af","parentId":"ba6fe062","timestamp":"2026-06-05T10:37:08.415Z","message":{"role":"assistant","content":[{"type":"text","text":"好的,明确了:\n\n**当前环境没有配置任何代理** ❌\n- 能访问百度 ✅ → 说明在国内\n- 不能访问 Google / x.ai ❌ → 需要代理才能访问海外服务\n\n如果想安装 X Search 工具,有两种选择:\n\n1️⃣ **配个代理** — 在 `~/.openclaw/openclaw.json` 中加代理配置,走系统环境变量也行\n2️⃣ **不安装也行** — 你的旅行规划需求我直接用网页搜索+知识库就能搞定,X Search 主要是查 X/Twitter 舆论用的\n\n你想怎么弄?或者暂时先不搞这个工具?😊"}],"api":"openai-completions","provider":"deepseek","model":"deepseek-v4-flash","usage":{"input":988,"output":138,"cacheRead":28544,"cacheWrite":0,"totalTokens":29670,"cost":{"input":0.000988,"output":0.000276,"cacheRead":0,"cacheWrite":0,"total":0.001264}},"stopReason":"stop","timestamp":1780655826038,"responseId":"ae5fcda0-3be2-42c7-9cff-c3b9d3229573"}}