MCPcopy Index your code
hub / github.com/docker/docker-agent / handleRunSkill

Method handleRunSkill

pkg/runtime/skill_runner.go:20–26  ·  view source on GitHub ↗

handleRunSkill unmarshals the run_skill tool arguments and delegates to RunSkillFork.

(ctx context.Context, sess *session.Session, toolCall tools.ToolCall, evts EventSink)

Source from the content-addressed store, hash-verified

18// handleRunSkill unmarshals the run_skill tool arguments and delegates
19// to RunSkillFork.
20func (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

Callers

nothing calls this directly

Calls 1

RunSkillForkMethod · 0.95

Tested by

no test coverage detected