<!--
{
  "availability" : [
    "macOS: 15.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWritingToolsCoordinator/ContextScope",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSWritingToolsCoordinatorContextScope"
  },
  "title" : "NSWritingToolsCoordinator.ContextScope"
}
-->

# NSWritingToolsCoordinator.ContextScope

Options that indicate how much of your content Writing Tools requested.

```
enum ContextScope
```

## Overview

At the start of any Writing Tools interaction, you provide the text for
the system to evaluate from your [`NSWritingToolsCoordinator.Delegate`](/documentation/AppKit/NSWritingToolsCoordinator/Delegate-swift.protocol)
object. The request for your content comes with a scope constant that
indicates how much of your view’s text to provide.

## Topics

### Getting the scope

[`case userSelection`](/documentation/AppKit/NSWritingToolsCoordinator/ContextScope/userSelection)

An option to provide only the view’s currently selected text.

[`case fullDocument`](/documentation/AppKit/NSWritingToolsCoordinator/ContextScope/fullDocument)

An option to provide all of your view’s text.

[`case visibleArea`](/documentation/AppKit/NSWritingToolsCoordinator/ContextScope/visibleArea)

An option to provide only the text in the currently visible portion
of your view.

### Initializers

[`init?(rawValue: Int)`](/documentation/AppKit/NSWritingToolsCoordinator/ContextScope/init(rawValue:))

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)