Package dev.relism.flash.ext.mcp
Class ToolArguments
java.lang.Object
dev.relism.flash.ext.mcp.ToolArguments
Typed accessor over a
tools/call request's arguments object.
Wraps the already-parsed JsonNode directly — no POJO databinding, no reflection,
no intermediate copy. Same spirit as QueryParams/PathParams in Flash core:
a thin typed view over data that already exists in memory.
public ToolResponse call(ToolArguments args) {
String city = args.getString("city");
int days = args.getInt("days", 1);
...
}
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(String name) booleangetBoolean(String name, boolean defaultValue) doubledoubleintintlonglongbooleancom.fasterxml.jackson.databind.JsonNodeEscape hatch for nested/array arguments not covered by the typed accessors above.
-
Method Details
-
has
-
getString
-
getString
-
getInt
-
getInt
-
getLong
-
getLong
-
getDouble
-
getDouble
-
getBoolean
-
getBoolean
-
raw
Escape hatch for nested/array arguments not covered by the typed accessors above.
-