界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

scienceworld-conditional-focus-executor

scienceworld-conditional-focus-executor

【数据与研究】Executes a 'focus on OBJ' action on a specific object based on the outcome of a prior conditional evaluation. Use when you have a measurement result and task instructions specify focusing on different objects (e.g., colored boxes) depending on whether the result meets a threshold.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: scienceworld-conditional-focus-executor description: Executes a 'focus on OBJ' action on a specific object based on the outcome of a prior conditional evaluation. Use when you have a measurement result and task instructions specify focusing on different objects (e.g., colored boxes) depending on whether the result meets a threshold.

Conditional Focus Executor

When to Use

Use after completing a measurement (temperature, pH, mass) when the task specifies a conditional rule like "If result > X, focus on A; otherwise, focus on B."

Procedure

  1. Evaluate the condition against your measurement result.
  2. Determine the target object based on which branch is true.
  3. Execute: focus on <TARGET_OBJECT>
  4. Verify: Confirm the focus action succeeded before proceeding.

If the focus action fails (e.g., object not found), use look around to verify the target object name matches exactly.

Example

Task: "If the temperature of the substance is above 50C, focus on the red box. Otherwise, focus on the blue box."

  1. Measurement result: 63C
  2. Evaluation: 63 > 50 is true → target is red box
  3. Execute: focus on red box
  4. Observation: "You focus on the red box." → task complete.
我的收藏