AgentsSkillBase

get_skill_data

View as MarkdownOpen in Claude

Read this skill instance’s namespaced state from raw_data["global_data"]. Each skill instance gets an isolated namespace to prevent collisions between multiple skills.

Parameters

raw_data
dict[str, Any]Required

The raw_data dict passed to SWAIG function handlers.

Returns

dict[str, Any] — The skill’s state, or empty dict if not found.

Example

1def _handle_query(self, args, raw_data):
2 state = self.get_skill_data(raw_data)
3 last_query = state.get("last_query", "none")
4 return FunctionResult(f"Previous query was: {last_query}")