handleRunSkill unmarshals the run_skill tool arguments and delegates to RunSkillFork.
(ctx context.Context, sess *session.Session, toolCall tools.ToolCall, evts EventSink)
| 18 | // handleRunSkill unmarshals the run_skill tool arguments and delegates |
| 19 | // to RunSkillFork. |
| 20 | func (r *LocalRuntime) handleRunSkill(ctx context.Context, sess *session.Session, toolCall tools.ToolCall, evts EventSink) (*tools.ToolCallResult, error) { |
| 21 | var args skills.RunSkillArgs |
| 22 | if err := json.Unmarshal([]byte(toolCall.Function.Arguments), &args); err != nil { |
| 23 | return nil, fmt.Errorf("invalid arguments: %w", err) |
| 24 | } |
| 25 | return r.RunSkillFork(ctx, sess, args, evts) |
| 26 | } |
| 27 | |
| 28 | // RunSkillFork executes a `context: fork` skill as an isolated sub-session. |
| 29 | // The expanded SKILL.md body becomes the child's first user message; the |
nothing calls this directly
no test coverage detected