You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Before writing code—find a working pattern to follow
31
29
- After errors—compare your code against a known-good sample
@@ -50,6 +48,8 @@ Fetch full page when method has multiple overloads or you need complete paramete
50
48
51
49
## Error Troubleshooting
52
50
51
+
Use `microsoft_code_sample_search` to find working code samples and compare with your implementation. For specific errors, use `microsoft_docs_search` and `microsoft_docs_fetch`:
52
+
53
53
| Error Type | Query |
54
54
|------------|-------|
55
55
| Method not found |`"[ClassName] methods [Namespace]"`|
@@ -61,15 +61,18 @@ Fetch full page when method has multiple overloads or you need complete paramete
61
61
62
62
## When to Verify
63
63
64
-
Check before using when:
64
+
Always verify when:
65
65
- Method name seems "too convenient" (`UploadFile` vs actual `Upload`)
66
66
- Mixing SDK versions (v11 `CloudBlobClient` vs v12 `BlobServiceClient`)
67
67
- Package name doesn't follow conventions (`Azure.*` for .NET, `azure-*` for Python)
68
-
- First time using this API
68
+
- Using an API for the first time
69
+
70
+
## Validation Workflow
71
+
72
+
Before generating code using Microsoft SDKs, verify it's correct:
69
73
70
-
## Quick Validation
74
+
1.**Confirm method or package exists** — `microsoft_docs_search(query: "[ClassName] [MethodName] [Namespace]")`
75
+
2.**Fetch full details** (for overloads/complex params) — `microsoft_docs_fetch(url: "...")`
76
+
3.**Find working sample** — `microsoft_code_sample_search(query: "[task]", language: "[lang]")`
0 commit comments