Parse Stacktrace
code.parse_stacktrace
Overview
When you paste a crash stack trace, we parse frames for Java, JavaScript, Python, Go, .NET, Ruby, and PHP into structured fields. We report only syntax present in the submitted trace. We never execute code, fetch source, infer a cause or diagnose the failure.
Stack traces are noisy text. We turn them into structured frames so your downstream steps can reason reliably.
Reliability
Frame parsing is deterministic and grammar-based. Unsupported or truncated syntax may produce partial or empty frames. Oversized input throws SIZE_LIMIT_EXCEEDED — shorten the trace before retrying.
Context footprint
Returns language, exception fields and bounded frames only. A successful call costs 1 execution credit.
When to use it
When you have raw trace text and need structured frames.
When you need root-cause analysis or remediation advice.
Scope
Non-goals
- Does not execute code
- Does not fetch source
- Does not infer or diagnose root cause
Properties
Capabilities
Cost & billing
Flat rate per invocation
File handling
How we handle your data
What this means
This skill may receive sensitive content, but it does not target sensitive data and returns only a structured non-sensitive result.
Squillify guarantees
- Runs inside Squillify
- This skill runs inside Squillify.
- Payloads are not sent to an external service by this skill.
- Squillify does not permanently store submitted payloads.
- Telemetry records metadata only, not submitted content.
- Submitted payloads are not used for training.
- Submitted payloads are not reviewed by humans.
- This skill does not target sensitive data.
- The response does not contain submitted content.
Your responsibility
Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.
Input schema
| Field | Type | Required | Description |
|---|---|---|---|
| stacktrace | string | Yes | Exact raw stack-trace text. |
| languageHint | string | No | Parser grammar hint; omit it for auto detection. |
| maxFrames | integer | No | Returned frame ceiling; omit it for 200. |
| includeRawFrames | boolean | No | Whether raw frame lines are returned; omit it for false. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| language | string | Yes | Applied or detected grammar. |
| exceptionType | string | No | Parsed exception type when present. |
| message | string | No | Parsed exception message when present. |
| frames | array | Yes | From 0 through 10,000 parsed frames in trace order, each a closed index plus optional type, file, line and raw. |
API contract
POST /v1/executecurl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"code.parse_stacktrace","input":{"stacktrace":"java.lang.NullPointerException\n\tat A.b(A.java:1)"}}'import { Squillify } from "@squillify/sdk";
const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });
const { output } = await sq.execute("code.parse_stacktrace", {"stacktrace":"java.lang.NullPointerException: x\n\tat com.acme.App.main(App.java:10)"});Errors
| Code | HTTP | Retryable | Description |
|---|---|---|---|
| VALIDATION_ERROR | 400 | No | The request payload failed schema validation. |
| UNAUTHORIZED | 401 | No | Missing or invalid API key. |
| SKILL_NOT_ACCESSIBLE | 403 | No | The API key is not granted access to this skill. |
| SKILL_NOT_AVAILABLE_FOR_PLAN | 403 | No | This skill is not included in your current plan. |
| PLAN_ELIGIBILITY_UNAVAILABLE | 503 | Yes | Plan eligibility could not be decided. Retry after backoff. |
| SKILL_NOT_FOUND | 404 | No | The requested skill or version does not exist. |
| TENANT_RATE_LIMITED | 429 | Yes | Request rate limit exceeded. Retry after backoff. |
| QUOTA_EXCEEDED | 429 | Yes | Plan quota exhausted. Retryable once the quota period resets. |
| EXECUTION_TIMEOUT | 504 | Yes | Execution exceeded the allowed time budget. |
Other limits
| Limit | Value |
|---|---|
| Recommended inline bytes | 32 KiB |
Limitations
- Does not execute code
- Does not fetch source
- Does not infer or diagnose root cause
- Root-cause diagnosis or remediation advice
How to call
POST /v1/execute (requires authentication)
{
"skillKey": "code.parse_stacktrace",
"input": {
"stacktrace": "java.lang.NullPointerException: x\n\tat com.acme.App.main(App.java:10)"
}
}Examples
Java NullPointerException frames
{
"stacktrace": "java.lang.NullPointerException: x\n\tat com.acme.App.main(App.java:10)"
}{
"frames": [
{
"index": 0,
"function": "com.acme.App.main",
"file": "App.java",
"line": 10,
"column": null,
"package": "com.acme"
}
],
"message": "x",
"language": "java",
"exceptionType": "java.lang.NullPointerException"
}JavaScript TypeError frames
{
"stacktrace": "TypeError: x is not a function\n at Object.<anonymous> (/app/index.js:5:11)"
}{
"frames": [
{
"index": 0,
"function": "Object.<anonymous>",
"file": "/app/index.js",
"line": 5,
"column": 11,
"package": null
}
],
"message": "x is not a function",
"language": "javascript",
"exceptionType": "TypeError"
}Recommended use cases
- Structure a stack trace before triage
- Extract frames for logging or ticket attachment
- Pre-process crashes for downstream analysis
Avoid for
- Root-cause diagnosis or remediation advice
Related skills
Composable with
Safety & privacy
- Runs without calling any external service.
- Your payloads are never stored permanently.
- Telemetry captures metadata only — never your payload contents.
- We never train models on your payloads.
- No human reviews your payloads.