public static extractAnnotationValue(annotationRaw as String, key as String) as String
Reads a top-level annotation argument without matching quoted contents. Escaped quotes and backslashes in string arguments are decoded.
| Parameter | Description |
|---|---|
annotationRaw | Serialized annotation declaration. |
key | Argument name. |
The value, or an empty string when the argument is absent. Example: ToolRegistry.extractAnnotationValue("@Tool(name='run')", "name").