When to use it
The host runs the tool and updates status and statusLabel. Keep it collapsed unless the result needs attention.
Native example
The host runs the tool and updates status and statusLabel. Keep it collapsed unless the result needs attention.
import androidx.compose.material3.Text
import androidx.compose.runtime.*
import com.santi020k.lumen.*
@Composable
fun SearchToolExample(running: Boolean) {
LumenToolActivity(
label = "Search the documentation",
statusLabel = if (running) "Searching 3 sources…" else "Found 3 results",
status = if (running) LumenToolStatus.Running else LumenToolStatus.Success
) {
Text("Query: \"prompt composer accessibility\"")
}
}Reference
The primary shared and platform-specific options exposed by LumenToolActivity.
| API | Values or type | Default | Description |
|---|---|---|---|
| label / status / statusLabel | summary / tool status / status text | required / queued / required | The host runs the tool and updates status and statusLabel. |
Native behavior
The host runs the tool and updates status and statusLabel. Keep it collapsed unless the result needs attention.
Summary button with expanded state; status label announced politely.
Shared component