一键导入
tasker-cli
Deploy and trigger Tasker tasks on Android via the Tasker WebUI and adb. Use for building Tasker automations from JSON.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Deploy and trigger Tasker tasks on Android via the Tasker WebUI and adb. Use for building Tasker automations from JSON.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Current API docs + code snippets for third-party libraries/frameworks. Use to verify exact signatures/usage.
Control Firefox browser from the command line. Use for web automation, scraping, testing, or any browser interaction tasks.
Inspect Buildbot (buildbot-nix) CI for a PR. Use to find/watch the build for a PR, list failed sub-builds with their attrs, and fetch failing log tails.
Manage calendar events and send meeting invitations. Use for listing, creating, editing, deleting events and sending/replying to invites.
Search Deutsche Bahn train connections. Use for train routes, schedules, and travel times in Germany.
Search for places and get directions using Google Maps. Use for finding locations, nearby places, and route planning.
基于 SOC 职业分类
| name | tasker-cli |
| description | Deploy and trigger Tasker tasks on Android via the Tasker WebUI and adb. Use for building Tasker automations from JSON. |
# On phone: Tasker → Preferences → UI → enable "Use Tasker 2025 UI (VERY EARLY)"
# Open any task for editing, tap ⋮ → WebUI
export TASKER_HOST=192.168.1.100
tasker-cli sync-specs
tasker-cli deploy task.json --replace # clear + deploy
tasker-cli deploy task.json --append # append to existing
tasker-cli deploy task.json --dry-run # validate only
cat task.json | tasker-cli deploy - # from stdin
{
"actions": [
{
"action": "Variable Set",
"args": { "Name": "%url", "To": "https://api.example.com/data" }
},
{
"action": "HTTP Request",
"args": { "Method": "0", "URL": "%url", "Timeout (Seconds)": "30" }
},
{ "action": "Flash", "args": { "Text": "Result: %HTTPD" } }
]
}
Rules:
tasker-cli specs)"true"/"false")tasker-cli specs --search <term> to find action names and required argsConditions use {"e": <lhs>, "b": <operator>, "f": <rhs>}. Multiple
conditions on one action are ANDed.
String operators: EqualsString, NotEqualsString, Matches, NotMatches,
MatchesRegex, NotMatchesRegex
Math operators: Equals, NotEquals, LessThan, MoreThan, Even, Odd
State operators: Set, NotSet (no "f" value needed)
{"action": "Flash", "args": {"Text": "Low!"}, "condition": [{"e": "%BATT", "b": "LessThan", "f": "20"}]}
{"action": "Stop", "args": {"With Error": "false"}, "condition": [{"e": "%par2", "b": "Equals", "f": "enter"}, {"e": "%GF", "b": "NotEqualsString", "f": "%par1"}]}
{"action": "If", "args": {}, "condition": [{"e": "%BATT", "b": "LessThan", "f": "20"}]}
{"action": "Else"}
{"action": "End If"}
The WebUI silently accepts invalid operator names but drops the "b" field,
producing a broken condition that crashes Tasker with a NullPointerException.
Always use the exact operator names listed above.
%caller1, %arr3 etc are invisible to JavaScriptlet. Copy them to a
plain variable first:
{
"action": "Variable Set",
"args": { "Name": "%callerinfo", "To": "%caller1" }
}
With "Auto Exit": "true" (the default in Tasker's UI but false when
omitted in JSON), variables declared with var are automatically exported
to Tasker. Without it the JavaScriptlet hangs until timeout. Always set it:
{
"action": "JavaScriptlet",
"args": {
"Code": "var x = 1;",
"Auto Exit": "true",
"Timeout (Seconds)": "45"
}
}
String "true" silently becomes false in the WebUI. Use actual booleans
for boolean-typed args: "Auto Exit": "true" works because tasker-cli
coerces it, but the wire format sends true not "true".
When a profile triggers a task directly, %caller1 contains
profile=enter:Profile Name or profile=exit:Profile Name.
When called via Perform Task, %caller1 is task=Task Name
and %caller2 has the profile info.
%GF_CURRENT is global (survives across tasks). %place is local
(lowercase, scoped to the current task invocation).
tasker-cli ping # check WebUI connectivity
tasker-cli show # show current task actions
tasker-cli specs --search flash # search action specs
tasker-cli trigger "My Task" --par1 "value"
TASKER_HOST — phone IP (required, or use --host)TASKER_WEBUI_PORT — WebUI port (default: 8745)TASKER_ADB_PORT — adb port (default: auto-detect)