{"version":"2.1.239","anchor":"deferred-tool-calls-carry-trace-context-to-hooks","canonical_anchor":"deferred-tool-calls-carry-trace-context-to-hooks","heading":"Deferred tool calls carry trace context to hooks","tier":"internal","area":"Hooks","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.239\/e\/deferred-tool-calls-carry-trace-context-to-hooks","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.239","markdown":"### Deferred tool calls carry trace context to hooks\n\nDeferred tool-call notifications now carry a traceparent so hook consumers can correlate them.\n\n**What**\n\nWhen a PreToolUse hook defers a tool call, the notification sent out now includes a W3C `traceparent` value, so hook consumers can line the deferred call up with the surrounding trace.\n\n**Details**\n\n- Sits alongside the existing `hookName`, `hookEvent: \"PreToolUse\"` and `permissionMode` fields.\n- The value comes from the existing trace-context helper and the field is omitted entirely when there is no active trace.\n\n**Evidence**\n\n`hookEvent: \"PreToolUse\"`\n\n- Area: Hooks\n- Names: `traceparent`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5"}