Class NaturalActionService
java.lang.Object
com.shaft.mcp.NaturalActionService
MCP entry point for trust-gated SHAFT natural-language actions.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NaturalActionService
public NaturalActionService()
-
-
Method Details
-
act
@Tool(name="natural_act", description="performs a trust-gated natural-language browser, element, or touch action on the active page") public McpNaturalActionResult act(String intent, List<String> arguments, Integer minimumTrustPercentage, String planner, Boolean aiFallbackEnabled, String allowedActions) Performs a natural-language browser, element, or touch action through the active SHAFT driver.- Parameters:
intent- natural-language action intentarguments- optional sensitive action arguments, such as typed valuesminimumTrustPercentage- optional trust threshold from 0 to 100; uses current configuration when nullplanner- optional planner id: deterministic, auto, or a ServiceLoader planner idaiFallbackEnabled- optional provider fallback flag; uses current configuration when nullallowedActions- optional comma-separated targets: browser, element, touch- Returns:
- redacted execution metadata
-